DmapAvRecord: libdmapsharing Reference Manual

## DmapAvRecord DmapAvRecord |

## Functions

gboolean | dmap_av_record_itunes_compat ()
GInputStream * | dmap_av_record_read ()
gint | dmap_av_record_cmp_by_album ()

## Properties

gint | bitrate | Read / Write
gint | disc | Read / Write
gint | duration | Read / Write
guint64 | filesize | Read / Write
gint | firstseen | Read / Write
gchar * | format | Read / Write
gboolean | has-video | Read / Write
GArray * | hash | Read / Write
gchar * | location | Read / Write
DmapMediaKind | mediakind | Read / Write
gint | mtime | Read / Write
gint | rating | Read / Write
gchar * | songalbum | Read / Write
gint64 | songalbumid | Read / Write
gchar * | songartist | Read / Write
gchar * | songgenre | Read / Write
gchar * | sort-album | Read / Write
gchar * | sort-artist | Read / Write
gchar * | title | Read / Write
gint | track | Read / Write
gint | year | Read / Write

## Object Hierarchy

        GInterface
        ╰── DmapAvRecord

## Description

## Functions

### dmap_av_record_itunes_compat ()

    gboolean
    dmap_av_record_itunes_compat (DmapAvRecord *record);

#### Parameters

record | A DmapAvRecord. |

#### Returns

TRUE if record is compatible with iTunes, else FALSE.

### dmap_av_record_read ()

    GInputStream *
    dmap_av_record_read (DmapAvRecord *record,
                         GError **err);

#### Parameters

record | a DmapAvRecord. |
err | a GError. |

#### Returns

A GInputStream that provides read-only access to the data stream associated with record.

[transfer full]

### dmap_av_record_cmp_by_album ()

    gint
    dmap_av_record_cmp_by_album (gpointer a,
                                 gpointer b,
                                 DmapDb *db);

Compares the two records associated with the provided keys according to album. Suitable to sort lists of albums.

#### Parameters

a | first ID. |
b | second ID. |
db | A DmapDb for which a and b are valid ID's. |

## Property Details

### The `“bitrate”` property

      “bitrate”                  gint

Song data bitrate in Kb/s.

Owner: DmapAvRecord

Flags: Read / Write

Allowed values: >= 0

Default value: 0

### The `“disc”` property

      “disc”                     gint

Song disc number.

Owner: DmapAvRecord

Flags: Read / Write

Allowed values: >= 0

Default value: 0

### The `“duration”` property

      “duration”                 gint

Song duration in seconds.

Owner: DmapAvRecord

Flags: Read / Write

Allowed values: >= 0

Default value: 0

### The `“filesize”` property

      “filesize”                 guint64

Song data size in bytes.

Owner: DmapAvRecord

Flags: Read / Write

Allowed values: <= 2147483647

Default value: 0

### The `“firstseen”` property

      “firstseen”                gint

FIXME.

Owner: DmapAvRecord

Flags: Read / Write

Allowed values: >= 0

Default value: 0

### The `“format”` property

      “format”                   gchar *

Song data format.

Owner: DmapAvRecord

Flags: Read / Write

Default value: "Unknown"

### The `“has-video”` property

      “has-video”                gboolean

Song has video component.

Owner: DmapAvRecord

Flags: Read / Write

Default value: FALSE

### The `“hash”` property

      “hash”                     GArray *

Hash of media file contents.

Owner: DmapAvRecord

Flags: Read / Write

### The `“location”` property

      “location”                 gchar *

URI pointing to song data.

Owner: DmapAvRecord

Flags: Read / Write

Default value: NULL

### The `“mediakind”` property

      “mediakind”                DmapMediaKind

Media kind.

Owner: DmapAvRecord

Flags: Read / Write

Default value: DMAP_MEDIA_KIND_MUSIC

### The `“mtime”` property

      “mtime”                    gint

Song modification time.

Owner: DmapAvRecord

Flags: Read / Write

Allowed values: >= 0

Default value: 0

### The `“rating”` property

      “rating”                   gint

Song rating.

Owner: DmapAvRecord

Flags: Read / Write

Allowed values: [0,5]

Default value: 0

### The `“songalbum”` property

      “songalbum”                gchar *

Album name.

Owner: DmapAvRecord

Flags: Read / Write

Default value: "Unknown"

### The `“songalbumid”` property

      “songalbumid”              gint64

Album id.

Owner: DmapAvRecord

Flags: Read / Write

Default value: 0

### The `“songartist”` property

      “songartist”               gchar *

Song artist.

Owner: DmapAvRecord

Flags: Read / Write

Default value: "Unknown"

### The `“songgenre”` property

      “songgenre”                gchar *

Song genre.

Owner: DmapAvRecord

Flags: Read / Write

Default value: "Unknown"

### The `“sort-album”` property

      “sort-album”               gchar *

Album sort name.

Owner: DmapAvRecord

Flags: Read / Write

Default value: "Unknown"

### The `“sort-artist”` property

      “sort-artist”              gchar *

Song artist sort name.

Owner: DmapAvRecord

Flags: Read / Write

Default value: "Unknown"

### The `“title”` property

      “title”                    gchar *

Song title.

Owner: DmapAvRecord

Flags: Read / Write

Default value: "Unknown"

### The `“track”` property

      “track”                    gint

Song track number.

Owner: DmapAvRecord

Flags: Read / Write

Allowed values: >= 0

Default value: 0

### The `“year”` property

      “year”                     gint

Song publication year.

Owner: DmapAvRecord

Flags: Read / Write

Allowed values: >= 0

Default value: 0