| Top |
| GQuark | ags_playable_error_quark () |
| gboolean | ags_playable_open () |
| gboolean | ags_playable_rw_open () |
| guint | ags_playable_level_count () |
| guint | ags_playable_nth_level () |
| gchar * | ags_playable_selected_level () |
| gchar ** | ags_playable_sublevel_names () |
| void | ags_playable_level_select () |
| void | ags_playable_level_up () |
| void | ags_playable_iter_start () |
| gboolean | ags_playable_iter_next () |
| void | ags_playable_info () |
| gdouble * | ags_playable_read () |
| void | ags_playable_write () |
| void | ags_playable_flush () |
| void | ags_playable_seek () |
| void | ags_playable_close () |
| GList * | ags_playable_read_audio_signal () |
gboolean ags_playable_open (AgsPlayable *playable,gchar *name);
Opens a file in read-only mode.
Since: 0.4.2
gboolean ags_playable_rw_open (AgsPlayable *playable,gchar *name,gboolean create,guint samplerate,guint channels,guint frames,guint format);
Opens a file in read/write mode.
playable |
the AgsPlayable |
|
name |
the filename |
|
create |
if |
|
samplerate |
the samplerate of the file |
|
channels |
the count of audio channels |
|
frames |
the count of frames |
|
format |
the audio file's format |
Since: 0.4.2
guint
ags_playable_level_count (AgsPlayable *playable);
Retrieve the count of levels.
Since: 0.4.2
guint
ags_playable_nth_level (AgsPlayable *playable);
Retrieve the selected level.
Since: 0.4.2
gchar *
ags_playable_selected_level (AgsPlayable *playable);
Retrieve the selected level's name.
Since: 0.4.2
gchar **
ags_playable_sublevel_names (AgsPlayable *playable);
Retrieve the all sub-level's name.
Since: 0.4.2
void ags_playable_level_select (AgsPlayable *playable,guint nth_level,gchar *sublevel_name,GError **error);
Select a level in an monolythic file where nth_level
and sublevel_name
are equivalent.
If sublevel_name
is NULL nth_level
will be chosen.
playable |
an AgsPlayable |
|
nth_level |
of type guint |
|
sublevel_name |
a gchar pointer |
|
error |
an error that may occure |
Since: 0.4.2
void ags_playable_level_up (AgsPlayable *playable,guint levels,GError **error);
Move up in hierarchy.
Since: 0.4.2
void
ags_playable_iter_start (AgsPlayable *playable);
Start iterating current level.
Since: 0.4.2
gboolean
ags_playable_iter_next (AgsPlayable *playable);
Iterating next on current level.
Since: 0.4.2
void ags_playable_info (AgsPlayable *playable,guint *channels,guint *frames,guint *loop_start,guint *loop_end,GError **error);
Retrieve information about selected audio data.
playable |
an AgsPlayable |
|
channels |
channels |
|
frames |
frames |
|
loop_start |
loop start |
|
loop_end |
loop end |
|
error |
returned error |
Since: 0.4.2
gdouble * ags_playable_read (AgsPlayable *playable,guint channel,GError **error);
Read audio buffer of playable audio data.
Since: 0.4.2
void ags_playable_write (AgsPlayable *playable,gdouble *buffer,guint buffer_length);
Write buffer_length
of buffer
audio data.
Since: 0.4.2
void
ags_playable_flush (AgsPlayable *playable);
Flush internal audio buffer.
Since: 0.4.2
void ags_playable_seek (AgsPlayable *playable,guint frames,gint whence);
Seek playable
to address.
Since: 0.4.2
void
ags_playable_close (AgsPlayable *playable);
Close audio file.
Since: 0.4.2
GList * ags_playable_read_audio_signal (AgsPlayable *playable,GObject *soundcard,guint start_channel,guint channels_to_read);
Read the audio signal of AgsPlayable
.
playable |
an AgsPlayable |
|
soundcard |
the AgsSoundcar defaulting to |
|
start_channel |
read from channel |
|
channels_to_read |
n-times |
Since: 0.4.2