RygelAudioItem

RygelAudioItem — Represents an audio item.

Synopsis

#define             RYGEL_TYPE_AUDIO_ITEM
#define             RYGEL_AUDIO_ITEM_UPNP_CLASS
RygelAudioItem *    rygel_audio_item_new                (const gchar *id,
                                                         RygelMediaContainer *parent,
                                                         const gchar *title,
                                                         const gchar *upnp_class);
glong               rygel_audio_item_get_duration       (RygelAudioItem *self);
void                rygel_audio_item_set_duration       (RygelAudioItem *self,
                                                         glong value);
gint                rygel_audio_item_get_bitrate        (RygelAudioItem *self);
void                rygel_audio_item_set_bitrate        (RygelAudioItem *self,
                                                         gint value);
gint                rygel_audio_item_get_sample_freq    (RygelAudioItem *self);
void                rygel_audio_item_set_sample_freq    (RygelAudioItem *self,
                                                         gint value);
gint                rygel_audio_item_get_bits_per_sample
                                                        (RygelAudioItem *self);
void                rygel_audio_item_set_bits_per_sample
                                                        (RygelAudioItem *self,
                                                         gint value);
gint                rygel_audio_item_get_channels       (RygelAudioItem *self);
void                rygel_audio_item_set_channels       (RygelAudioItem *self,
                                                         gint value);
struct              RygelAudioItem;
struct              RygelAudioItemClass;

Object Hierarchy

  GObject
   +----RygelMediaObject
         +----RygelMediaItem
               +----RygelAudioItem
                     +----RygelMusicItem
                     +----RygelVideoItem

Properties

  "bitrate"                  gint                  : Read / Write
  "bits-per-sample"          gint                  : Read / Write
  "channels"                 gint                  : Read / Write
  "duration"                 glong                 : Read / Write
  "sample-freq"              gint                  : Read / Write

Description

Details

RYGEL_TYPE_AUDIO_ITEM

#define RYGEL_TYPE_AUDIO_ITEM (rygel_audio_item_get_type ())

The type for RygelAudioItem.


RYGEL_AUDIO_ITEM_UPNP_CLASS

#define RYGEL_AUDIO_ITEM_UPNP_CLASS "object.item.audioItem"

rygel_audio_item_new ()

RygelAudioItem *    rygel_audio_item_new                (const gchar *id,
                                                         RygelMediaContainer *parent,
                                                         const gchar *title,
                                                         const gchar *upnp_class);

id :

 

parent :

 

title :

 

upnp_class :

 

rygel_audio_item_get_duration ()

glong               rygel_audio_item_get_duration       (RygelAudioItem *self);

Get and return the current value of the "duration" property.

self :

the RygelAudioItem instance to query

Returns :

the value of the "duration" property

rygel_audio_item_set_duration ()

void                rygel_audio_item_set_duration       (RygelAudioItem *self,
                                                         glong value);

Set the value of the "duration" property to value.

self :

the RygelAudioItem instance to modify

value :

the new value of the "duration" property

rygel_audio_item_get_bitrate ()

gint                rygel_audio_item_get_bitrate        (RygelAudioItem *self);

Get and return the current value of the "bitrate" property.

self :

the RygelAudioItem instance to query

Returns :

the value of the "bitrate" property

rygel_audio_item_set_bitrate ()

void                rygel_audio_item_set_bitrate        (RygelAudioItem *self,
                                                         gint value);

Set the value of the "bitrate" property to value.

self :

the RygelAudioItem instance to modify

value :

the new value of the "bitrate" property

rygel_audio_item_get_sample_freq ()

gint                rygel_audio_item_get_sample_freq    (RygelAudioItem *self);

Get and return the current value of the "sample-freq" property.

self :

the RygelAudioItem instance to query

Returns :

the value of the "sample-freq" property

rygel_audio_item_set_sample_freq ()

void                rygel_audio_item_set_sample_freq    (RygelAudioItem *self,
                                                         gint value);

Set the value of the "sample-freq" property to value.

self :

the RygelAudioItem instance to modify

value :

the new value of the "sample-freq" property

rygel_audio_item_get_bits_per_sample ()

gint                rygel_audio_item_get_bits_per_sample
                                                        (RygelAudioItem *self);

Get and return the current value of the "bits-per-sample" property.

self :

the RygelAudioItem instance to query

Returns :

the value of the "bits-per-sample" property

rygel_audio_item_set_bits_per_sample ()

void                rygel_audio_item_set_bits_per_sample
                                                        (RygelAudioItem *self,
                                                         gint value);

Set the value of the "bits-per-sample" property to value.

self :

the RygelAudioItem instance to modify

value :

the new value of the "bits-per-sample" property

rygel_audio_item_get_channels ()

gint                rygel_audio_item_get_channels       (RygelAudioItem *self);

Get and return the current value of the "channels" property.

self :

the RygelAudioItem instance to query

Returns :

the value of the "channels" property

rygel_audio_item_set_channels ()

void                rygel_audio_item_set_channels       (RygelAudioItem *self,
                                                         gint value);

Set the value of the "channels" property to value.

self :

the RygelAudioItem instance to modify

value :

the new value of the "channels" property

struct RygelAudioItem

struct RygelAudioItem;

Represents an audio item.


struct RygelAudioItemClass

struct RygelAudioItemClass {
	RygelMediaItemClass parent_class;
};

The class structure for RYGEL_TYPE_AUDIO_ITEM. All the fields in this structure are private and should never be accessed directly.

RygelMediaItemClass parent_class;

the parent class structure

Property Details

The "bitrate" property

  "bitrate"                  gint                  : Read / Write

bitrate.

Default value: -1


The "bits-per-sample" property

  "bits-per-sample"          gint                  : Read / Write

bits-per-sample.

Default value: -1


The "channels" property

  "channels"                 gint                  : Read / Write

channels.

Default value: -1


The "duration" property

  "duration"                 glong                 : Read / Write

duration.

Default value: -1


The "sample-freq" property

  "sample-freq"              gint                  : Read / Write

sample-freq.

Default value: -1