Class AudioAnalyzerDeviceInfo

Class Documentation

class AudioAnalyzerDeviceInfo

Audio Device Info.

Basic buffer history manager implementation using a deque

Public Functions

AudioAnalyzerDeviceInfo()

Constructor

~AudioAnalyzerDeviceInfo()

Destructor

AudioAnalyzerDeviceInfo(AudioAnalyzerDeviceInfo const &x) = delete

Disable copy constructor

Parameters

x

void operator=(AudioAnalyzerDeviceInfo const &x) = delete

Disable copy assignment

Parameters

x

const bool isDefaultDevice() const

Check if the device has been set manually

Returns

Is the system audio device

void setFormatFromSDL(const uint16_t &audioFormat)

Converts from SDL2 format type to deviceInfo format type

Parameters

audioFormat – SDL audio format

void setFormatFromWINAPI(const uint16_t &audioFormat)

Converts from WINAPI format type to deviceInfo format type

Parameters

audioFormat – WINAPI audio format

Public Members

std::string name

Device system name

uint32_t sampleRate

Sample rate

int16_t numChannels

Number of channels

uint16_t bufferSamples

Size of the audio buffer

int format

Audio format

int bitDepth

Audio bit depth

Public Static Attributes

static const std::string SYSTEM_DEVICE_NAME

Default device system name