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) ((OUTPUT_SAMPLE) ((in) * gInOutScaler)) |
#define | INPUT_DEVICE (Pa_GetDefaultInputDevice()) |
#define | OUTPUT_DEVICE (Pa_GetDefaultOutputDevice()) |
#define | CHECK_FLAG_COUNT(member) if( config->member > 0 ) printf("FLAGS SET: " #member " = %d\n", config->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 | ) | if( config->member > 0 ) printf("FLAGS SET: " #member " = %d\n", config->member ); |
#define CONVERT_IN_TO_OUT | ( | in | ) | ((OUTPUT_SAMPLE) ((in) * gInOutScaler)) |
#define INPUT_DEVICE (Pa_GetDefaultInputDevice()) |
#define INPUT_FORMAT paFloat32 |
#define OUTPUT_DEVICE (Pa_GetDefaultOutputDevice()) |
#define OUTPUT_FORMAT paFloat32 |
#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 | ) |
double gInOutScaler = 1.0 |