Method

AgsAudioSoundResourceread

since: 3.0.0

Declaration [src]

guint
ags_sound_resource_read (
  AgsSoundResource* sound_resource,
  void* dbuffer,
  guint daudio_channels,
  guint audio_channel,
  guint frame_count,
  AgsSoundcardFormat format
)

Description [src]

Read frame_count number of frames from sound_resource and copy the data to dbuffer using format by skipping daudio_channels.

Available since: 3.0.0

Parameters

dbuffer

Type: void*

The destination buffer.

The argument can be NULL.
The data is owned by the caller of the method.
daudio_channels

Type: guint

Destination buffer audio channel count.

audio_channel

Type: guint

The audio channel to read.

frame_count

Type: guint

The frame count to read.

format

Type: AgsSoundcardFormat

The format to read.

Return value

Type: guint

The count of frames actually read.