Interface
AgsAudioSoundResource
Prerequisite
In order to implement SoundResource, your type must inherit fromGObject
.
Instance methods
ags_sound_resource_read
Read frame_count
number of frames from sound_resource
and copy the data
to dbuffer
using format
by skipping daudio_channels
.
since: 3.0.0
ags_sound_resource_rw_open
Open sound_resource
for reading/writing and assign filename. Setting
create
to TRUE
causes to create the file if it doesn’t exist.
since: 3.0.0
ags_sound_resource_write
Write sbuffer
to sound_resource
frame_count
number of
frames having format
by skipping saudio_channels
.
since: 3.0.0
Interface structure
struct AgsAudioSoundResourceInterface {
GTypeInterface ginterface;
gboolean (* open) (
AgsSoundResource* sound_resource,
gchar* filename
);
gboolean (* rw_open) (
AgsSoundResource* sound_resource,
gchar* filename,
guint audio_channels,
guint samplerate,
gboolean create
);
void (* load) (
AgsSoundResource* sound_resource
);
void (* info) (
AgsSoundResource* sound_resource,
guint* frame_count,
guint* loop_start,
guint* loop_end
);
void (* set_presets) (
AgsSoundResource* sound_resource,
guint channels,
guint samplerate,
guint buffer_size,
AgsSoundcardFormat format
);
void (* get_presets) (
AgsSoundResource* sound_resource,
guint* channels,
guint* samplerate,
guint* buffer_size,
AgsSoundcardFormat* format
);
guint (* read) (
AgsSoundResource* sound_resource,
void* dbuffer,
guint daudio_channels,
guint audio_channel,
guint frame_count,
AgsSoundcardFormat format
);
void (* write) (
AgsSoundResource* sound_resource,
void* sbuffer,
guint saudio_channels,
guint audio_channel,
guint frame_count,
AgsSoundcardFormat format
);
void (* flush) (
AgsSoundResource* sound_resource
);
void (* seek) (
AgsSoundResource* sound_resource,
gint64 frame_count,
gint whence
);
void (* close) (
AgsSoundResource* sound_resource
);
}
No description available.
Interface members
ginterface |
|
No description available. |
|
open |
|
No description available. |
|
rw_open |
|
No description available. |
|
load |
|
No description available. |
|
info |
|
No description available. |
|
set_presets |
|
No description available. |
|
get_presets |
|
No description available. |
|
read |
|
No description available. |
|
write |
|
No description available. |
|
flush |
|
No description available. |
|
seek |
|
No description available. |
|
close |
|
No description available. |
Virtual methods
AgsAudio.SoundResource.read
Read frame_count
number of frames from sound_resource
and copy the data
to dbuffer
using format
by skipping daudio_channels
.
since: 3.0.0
AgsAudio.SoundResource.rw_open
Open sound_resource
for reading/writing and assign filename. Setting
create
to TRUE
causes to create the file if it doesn’t exist.
since: 3.0.0
AgsAudio.SoundResource.write
Write sbuffer
to sound_resource
frame_count
number of
frames having format
by skipping saudio_channels
.
since: 3.0.0