SoundRecorder.setDevice

Set the audio capture device.

This function sets the audio capture device to the device with the given name. It can be called on the fly (i.e: while recording). If you do so while recording and opening the device fails, it stops the recording.

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

Parameters

name
Type: const(char)[]

The name of the audio capture device

Return Value

Type: bool

true, if it was able to set the requested device.

See Also

getAvailableDevices, getDefaultDevice

Meta