|
PortAudio 2.0
|
Pass input directly to output. More...
Data Structures | |
| struct | WireConfig_s |
Macros | |
| #define | SAMPLE_RATE (44100) |
| #define | USE_FLOAT_INPUT (1) |
| #define | USE_FLOAT_OUTPUT (1) |
| #define | INPUT_FORMAT paFloat32 |
| #define | OUTPUT_FORMAT paFloat32 |
| #define | CONVERT_IN_TO_OUT(in) |
| #define | INPUT_DEVICE (Pa_GetDefaultInputDevice()) |
| #define | OUTPUT_DEVICE (Pa_GetDefaultOutputDevice()) |
| #define | CHECK_FLAG_COUNT(member) |
Typedefs | |
| typedef struct WireConfig_s | WireConfig_t |
| typedef float | INPUT_SAMPLE |
| typedef float | OUTPUT_SAMPLE |
Functions | |
| int | main (void) |
Variables | |
| double | gInOutScaler = 1.0 |
Pass input directly to output.
Note that some HW devices, for example many ISA audio cards on PCs, do NOT support full duplex! For a PC, you normally need a PCI based audio card such as the SBLive.
While adapting to V19-API, I excluded configs with framesPerCallback=0 because of an assert in file pa_common/pa_process.c. Pieter, Oct 9, 2003.
| #define CHECK_FLAG_COUNT | ( | member | ) |
| #define CONVERT_IN_TO_OUT | ( | in | ) |
| #define INPUT_DEVICE (Pa_GetDefaultInputDevice()) |
Referenced by main().
| #define OUTPUT_DEVICE (Pa_GetDefaultOutputDevice()) |
Referenced by main().
| #define SAMPLE_RATE (44100) |
| #define USE_FLOAT_INPUT (1) |
| #define USE_FLOAT_OUTPUT (1) |
| typedef float INPUT_SAMPLE |
| typedef float OUTPUT_SAMPLE |
| typedef struct WireConfig_s WireConfig_t |
| int main | ( | void | ) |
References WireConfig_s::framesPerCallback, gInOutScaler, INPUT_DEVICE, INPUT_FORMAT, WireConfig_s::inputDevice, WireConfig_s::isInputInterleaved, WireConfig_s::isOutputInterleaved, PaDeviceInfo::maxInputChannels, PaDeviceInfo::maxOutputChannels, WireConfig_s::numInputChannels, WireConfig_s::numOutputChannels, OUTPUT_DEVICE, OUTPUT_FORMAT, WireConfig_s::outputDevice, Pa_GetDeviceInfo(), Pa_GetErrorText(), Pa_Initialize(), Pa_Terminate(), paFloat32, paInt16, paNoDevice, and paNoError.
| double gInOutScaler = 1.0 |
Referenced by main().