|
OpenShot Library | libopenshot 1.1.1
|
#include <AudioRecorder.h>
Static Public Member Functions | |
| static int | DeviceChannels (int requested_channels) |
| static void | FillBlock (AudioRecorderBlock &block, int channels, const float *const *input_channel_data, int num_input_channels, int num_samples) |
Definition at line 113 of file AudioRecorder.h.
|
static |
Number of device channels to open for a requested channel count. Stereo devices are opened as stereo (even for mono recordings), since some drivers convert badly when asked for fewer channels than the device has. Devices with fewer channels are clamped by the audio backend.
Definition at line 25 of file AudioRecorder.cpp.
Referenced by openshot::AudioRecorder::Open().
|
static |
Copy device input into a block with the requested channel count. Extra channels repeat the first input channel (i.e. a mono device recorded as stereo).
Definition at line 30 of file AudioRecorder.cpp.
Referenced by openshot::AudioRecorder::audioDeviceIOCallbackWithContext().