Interface

AgsAudioSoundResource

Description

interface AgsAudio.SoundResource : GObject.Object
No description available.

Prerequisite

In order to implement SoundResource, your type must inherit fromGObject.

Instance methods

ags_sound_resource_close

Close sound_resource.

since: 3.0.0

ags_sound_resource_flush

Flush sound_resource.

since: 3.0.0

ags_sound_resource_get_presets

Get presets of sound_resource.

since: 3.0.0

ags_sound_resource_info

Get information about sound_resource.

since: 3.0.0

ags_sound_resource_load

Load audio data of sound_resource.

since: 3.0.0

ags_sound_resource_open

Open sound_resource for reading and assign filename.

since: 3.0.0

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_read_audio_signal

Read audio signal from sound_resource.

since: 3.0.0

ags_sound_resource_read_audio_signal_at_once

Read audio signal from sound_resource.

since: 4.4.0

ags_sound_resource_read_wave

Read wave from sound_resource.

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_seek

Seek the sound_resource frame_count from whence.

since: 3.0.0

ags_sound_resource_set_presets

Set presets of sound_resource.

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
GTypeInterface
 No description available.
open
gboolean (* open) (
    AgsSoundResource* sound_resource,
    gchar* filename
  )
 No description available.
rw_open
gboolean (* rw_open) (
    AgsSoundResource* sound_resource,
    gchar* filename,
    guint audio_channels,
    guint samplerate,
    gboolean create
  )
 No description available.
load
void (* load) (
    AgsSoundResource* sound_resource
  )
 No description available.
info
void (* info) (
    AgsSoundResource* sound_resource,
    guint* frame_count,
    guint* loop_start,
    guint* loop_end
  )
 No description available.
set_presets
void (* set_presets) (
    AgsSoundResource* sound_resource,
    guint channels,
    guint samplerate,
    guint buffer_size,
    AgsSoundcardFormat format
  )
 No description available.
get_presets
void (* get_presets) (
    AgsSoundResource* sound_resource,
    guint* channels,
    guint* samplerate,
    guint* buffer_size,
    AgsSoundcardFormat* format
  )
 No description available.
read
guint (* read) (
    AgsSoundResource* sound_resource,
    void* dbuffer,
    guint daudio_channels,
    guint audio_channel,
    guint frame_count,
    AgsSoundcardFormat format
  )
 No description available.
write
void (* write) (
    AgsSoundResource* sound_resource,
    void* sbuffer,
    guint saudio_channels,
    guint audio_channel,
    guint frame_count,
    AgsSoundcardFormat format
  )
 No description available.
flush
void (* flush) (
    AgsSoundResource* sound_resource
  )
 No description available.
seek
void (* seek) (
    AgsSoundResource* sound_resource,
    gint64 frame_count,
    gint whence
  )
 No description available.
close
void (* close) (
    AgsSoundResource* sound_resource
  )
 No description available.

Virtual methods

AgsAudio.SoundResource.close

Close sound_resource.

since: 3.0.0

AgsAudio.SoundResource.flush

Flush sound_resource.

since: 3.0.0

AgsAudio.SoundResource.get_presets

Get presets of sound_resource.

since: 3.0.0

AgsAudio.SoundResource.info

Get information about sound_resource.

since: 3.0.0

AgsAudio.SoundResource.load

Load audio data of sound_resource.

since: 3.0.0

AgsAudio.SoundResource.open

Open sound_resource for reading and assign filename.

since: 3.0.0

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.seek

Seek the sound_resource frame_count from whence.

since: 3.0.0

AgsAudio.SoundResource.set_presets

Set presets of sound_resource.

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