SoundRecorder.onProcessSamples

Process a new chunk of recorded samples.

This virtual function is called every time a new chunk of recorded data is available. The derived class can then do whatever it wants with it (storing it, playing it, sending it over the network, etc.).

class SoundRecorder
protected abstract
bool
onProcessSamples
(
const(short)[] samples
)

Parameters

samples
Type: const(short)[]

Array of the new chunk of recorded samples

Return Value

Type: bool

true to continue the capture, or false to stop it.

Meta