Music.onGetData

Request a new chunk of audio samples from the stream source.

This function fills the chunk from the next samples to read from the audio file.

class Music
protected override
bool
onGetData
(
ref const(short)[] samples
)

Parameters

samples
Type: const(short)[]

Array of samples to fill

Return Value

Type: bool

true to continue playback, false to stop.

Meta