NAP
Public Attributes | List of all members
PortAudioServiceConfiguration::DeviceSettings Struct Reference

#include <audio/service/portaudioservice.h>

Public Attributes

std::string mHostApi = ""
 
std::string mInputDevice = ""
 
std::string mOutputDevice = ""
 
int mInputChannelCount = 1
 
int mOutputChannelCount = 2
 
bool mDisableInput = false
 
bool mDisableOutput = false
 
float mSampleRate = 44100
 
int mBufferSize = 1024
 
int mInternalBufferSize = 1024
 

Description

Copyable struct containing audio device settings

Member Data Documentation

◆ mBufferSize

int mBufferSize = 1024

The buffer size the audio stream will run on, every audio callback processes this amount of samples per channel

◆ mDisableInput

bool mDisableInput = false

If set to true the audio will start with only an output device.

◆ mDisableOutput

bool mDisableOutput = false

If set to true the audio will start with only an input device.

◆ mHostApi

std::string mHostApi = ""

Name of the host API (or driver type) used for this audio stream. Use AudioService to poll for available host APIs The host API is an audio driver API like Windows MME, ASIO, CoreAudio, Jack, etc. If left empty the default host API will be used.

◆ mInputChannelCount

int mInputChannelCount = 1

The number of input channels in the stream. If the chosen input device does not support this amount of channels the stream will not start.

◆ mInputDevice

std::string mInputDevice = ""

Name of the input device being used. Use the AudioService to poll for available devices for a certain host API. If left empty, the default input device will be used.

◆ mInternalBufferSize

int mInternalBufferSize = 1024

The buffer size that is used internally by the node system to peform processing. This can be lower than mBufferSize but has to fit within mBufferSize a discrete amount of times. Lowering this can improve timing precision in the case that the node manager performs internal event scheduling, however will increase performance load.

◆ mOutputChannelCount

int mOutputChannelCount = 2

The number of output channels in the stream. If the chosen output device does not support this amount of channels the stream will not start.

◆ mOutputDevice

std::string mOutputDevice = ""

Name of the output device being used. Use the AudioService to poll for available devices for a certain host API. If left empty the default output device will be used.

◆ mSampleRate

float mSampleRate = 44100

The sample rate the audio stream will run on, the number of samples processed per channel per second.