SoundBufferRecorder

Specialized SoundRecorder which stores the captured audio data into a sound buffer.

Constructors

this
this()

Default constructor.

Destructor

~this
~this()

Destructor.

Members

Functions

getBuffer
const(SoundBuffer) getBuffer()

Get the sound buffer containing the captured audio data.

onProcessSamples
bool onProcessSamples(const(short)[] samples)

Process a new chunk of recorded samples.

onStart
bool onStart()

Start capturing audio data.

onStop
void onStop()

Stop capturing audio data.

Inherited Members

From SoundRecorder

~this
~this()

Destructor.

start
void start(uint theSampleRate = 44100)

Start the capture.

stop
void stop()

Stop the capture.

sampleRate
uint sampleRate [@property getter]

Get the sample rate in samples per second.

getDevice
string getDevice()

Get the name of the current audio capture device.

setDevice
bool setDevice(const(char)[] name)

Set the audio capture device.

getAvailableDevices
const(string)[] getAvailableDevices()

Get a list of the names of all available audio capture devices.

getDefaultDevice
string getDefaultDevice()

Get the name of the default audio capture device.

isAvailable
bool isAvailable()

Check if the system supports audio capture.

setProcessingInterval
void setProcessingInterval(Duration interval)

Set the processing interval.

onStart
bool onStart()

Start capturing audio data.

onProcessSamples
bool onProcessSamples(const(short)[] samples)

Process a new chunk of recorded samples.

onStop
void onStop()

Stop capturing audio data.

Meta