Top | ![]() |
![]() |
![]() |
![]() |
This high level class represents an audio multimedia item. It has methods to set and get properties like artist, album, and so on.
GrlMedia *
grl_media_audio_new (void
);
Creates a new data audio object.
Since: 0.1.4
void grl_media_audio_add_artist (GrlMediaAudio *audio
,const gchar *artist
);
Adds a new artist to audio
.
Since: 0.1.10
void grl_media_audio_add_genre (GrlMediaAudio *audio
,const gchar *genre
);
Adds a new genre to audio
.
Since: 0.1.10
void grl_media_audio_add_lyrics (GrlMediaAudio *audio
,const gchar *lyrics
);
Adds a new lyrics to audio
.
Since: 0.1.10
void grl_media_audio_add_mb_artist_id (GrlMediaAudio *audio
,const gchar *mb_artist_id
);
Adds a new MusicBrainz artist id to audio
.
Since: 0.2.12
void grl_media_audio_add_url_data (GrlMediaAudio *audio
,const gchar *url
,const gchar *mime
,gint bitrate
);
Sets all the keys related with the URL of a media resource and adds it to
audio
(useful for resources with more than one URL).
audio |
the media instance |
|
url |
an audio's url |
|
mime |
the |
|
bitrate |
the |
Since: 0.1.10
const gchar *
grl_media_audio_get_album (GrlMediaAudio *audio
);
Since: 0.1.4
const gchar *
grl_media_audio_get_artist (GrlMediaAudio *audio
);
Since: 0.1.4
const gchar * grl_media_audio_get_artist_nth (GrlMediaAudio *audio
,guint index
);
Since: 0.1.10
gint
grl_media_audio_get_bitrate (GrlMediaAudio *audio
);
Since: 0.1.4
const gchar *
grl_media_audio_get_genre (GrlMediaAudio *audio
);
Since: 0.1.4
const gchar * grl_media_audio_get_genre_nth (GrlMediaAudio *audio
,guint index
);
Since: 0.1.10
const gchar *
grl_media_audio_get_lyrics (GrlMediaAudio *audio
);
Since: 0.1.4
const gchar * grl_media_audio_get_lyrics_nth (GrlMediaAudio *audio
,guint index
);
Since: 0.1.10
const gchar *
grl_media_audio_get_mb_album_id (GrlMediaAudio *audio
);
Since: 0.2.11
const gchar *
grl_media_audio_get_mb_artist_id (GrlMediaAudio *audio
);
Since: 0.2.12
const gchar * grl_media_audio_get_mb_artist_id_nth (GrlMediaAudio *audio
,guint index
);
Since: 0.2.12
const gchar *
grl_media_audio_get_mb_recording_id (GrlMediaAudio *audio
);
Since: 0.2.12
const gchar *
grl_media_audio_get_mb_track_id (GrlMediaAudio *audio
);
Since: 0.2.12
const gchar * grl_media_audio_get_url_data (GrlMediaAudio *audio
,gchar **mime
,gint *bitrate
);
Since: 0.1.10
const gchar * grl_media_audio_get_url_data_nth (GrlMediaAudio *audio
,guint index
,gchar **mime
,gint *bitrate
);
Since: 0.1.10
void grl_media_audio_set_album (GrlMediaAudio *audio
,const gchar *album
);
Set the album of the audio
Since: 0.1.4
void grl_media_audio_set_artist (GrlMediaAudio *audio
,const gchar *artist
);
Set the artist of the audio
Since: 0.1.4
void grl_media_audio_set_bitrate (GrlMediaAudio *audio
,gint bitrate
);
Set the bitrate of the audio
Since: 0.1.4
void grl_media_audio_set_genre (GrlMediaAudio *audio
,const gchar *genre
);
Set the genre of the audio
Since: 0.1.4
void grl_media_audio_set_lyrics (GrlMediaAudio *audio
,const gchar *lyrics
);
Set the lyrics of the audio
Since: 0.1.4
void grl_media_audio_set_mb_album_id (GrlMediaAudio *audio
,const gchar *mb_album_id
);
Set the MusicBrainz album identifier of the audio
Since: 0.2.11
void grl_media_audio_set_mb_artist_id (GrlMediaAudio *audio
,const gchar *mb_artist_id
);
Set the MusicBrainz artist identifier of the audio
Since: 0.2.12
void grl_media_audio_set_mb_recording_id (GrlMediaAudio *audio
,const gchar *mb_recording_id
);
Set the MusicBrainz recording identifier of the audio
Since: 0.2.12
void grl_media_audio_set_mb_track_id (GrlMediaAudio *audio
,const gchar *mb_track_id
);
Set the MusicBrainz track identifier of the audio
Since: 0.2.12
void grl_media_audio_set_track_number (GrlMediaAudio *audio
,gint track_number
);
Set the track number of the audio
void grl_media_audio_set_url_data (GrlMediaAudio *audio
,const gchar *url
,const gchar *mime
,gint bitrate
);
Sets all the keys related with the URL of an audio resource in one go.
audio |
the media instance |
|
url |
the audio's url |
|
mime |
the |
|
bitrate |
the |
Since: 0.1.10