OpenShot Library | libopenshot 1.1.1
Loading...
Searching...
No Matches
Static Public Member Functions | List of all members
openshot::AudioRecorderInputMapper Class Reference

#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)
 

Detailed Description

Definition at line 113 of file AudioRecorder.h.

Member Function Documentation

◆ DeviceChannels()

int AudioRecorderInputMapper::DeviceChannels ( int  requested_channels)
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().

◆ FillBlock()

void AudioRecorderInputMapper::FillBlock ( AudioRecorderBlock &  block,
int  channels,
const float *const *  input_channel_data,
int  num_input_channels,
int  num_samples 
)
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().


The documentation for this class was generated from the following files: