PortAudio 2.0
|
Record input into an array; Save array to a file; Playback recorded data. More...
Data Structures | |
struct | paTestData |
Macros | |
#define | SAMPLE_RATE (44100) |
#define | FRAMES_PER_BUFFER (512) |
#define | NUM_SECONDS (5) |
#define | NUM_CHANNELS (1) |
#define | DITHER_FLAG (0) |
#define | WRITE_TO_FILE (0) |
#define | PA_SAMPLE_TYPE paFloat32 |
#define | SAMPLE_SILENCE (0.0f) |
#define | PRINTF_S_FORMAT "%.8f" |
Functions | |
int | main (void) |
Record input into an array; Save array to a file; Playback recorded data.
#define DITHER_FLAG (0) |
#define FRAMES_PER_BUFFER (512) |
Referenced by main().
#define NUM_CHANNELS (1) |
Referenced by main().
#define NUM_SECONDS (5) |
Referenced by main().
#define PRINTF_S_FORMAT "%.8f" |
Referenced by main().
#define SAMPLE_RATE (44100) |
Referenced by main().
#define SAMPLE_SILENCE (0.0f) |
#define WRITE_TO_FILE (0) |
Set to 1 if you want to capture the recording to a file.
int main | ( | void | ) |
References PaStreamParameters::channelCount, PaDeviceInfo::defaultLowInputLatency, PaDeviceInfo::defaultLowOutputLatency, PaStreamParameters::device, paTestData::frameIndex, FRAMES_PER_BUFFER, PaStreamParameters::hostApiSpecificStreamInfo, paTestData::maxFrameIndex, NUM_CHANNELS, NUM_SECONDS, Pa_CloseStream(), Pa_GetDefaultInputDevice(), Pa_GetDefaultOutputDevice(), Pa_GetDeviceInfo(), Pa_GetErrorText(), Pa_Initialize(), Pa_IsStreamActive(), Pa_OpenStream(), PA_SAMPLE_TYPE, Pa_Sleep(), Pa_StartStream(), Pa_Terminate(), paClipOff, paNoDevice, paNoError, PRINTF_S_FORMAT, paTestData::recordedSamples, SAMPLE_RATE, PaStreamParameters::sampleFormat, and PaStreamParameters::suggestedLatency.