Method

AgsAudioSoundResourcerw_open

since: 3.0.0

Declaration [src]

gboolean
ags_sound_resource_rw_open (
  AgsSoundResource* sound_resource,
  gchar* filename,
  guint audio_channels,
  guint samplerate,
  gboolean create
)

Description [src]

Open sound_resource for reading/writing and assign filename. Setting create to TRUE causes to create the file if it doesn’t exist.

Available since: 3.0.0

Parameters

filename

Type: gchar*

The filename as string.

The data is owned by the caller of the method.
The value is a NUL terminated UTF-8 string.
audio_channels

Type: guint

The audio channels count.

samplerate

Type: guint

The samplerate.

create

Type: gboolean

If TRUE create file, otherwise don’t.

Return value

Type: gboolean

TRUE if operation was successful, otherwise FALSE.