#include <stdio.h>
#include <stdlib.h>
#include <memory.h>
#include "portaudio.h"
Data Structures | |
struct | paTestData |
Defines | |
#define | SAMPLE_RATE (22050) |
#define | NUM_SECONDS (4) |
#define | SLEEP_DUR_MSEC (200) |
#define | FRAMES_PER_BUFFER (256) |
#define | NUM_REC_BUFS (0) |
#define | PA_SAMPLE_TYPE paFloat32 |
Typedefs | |
typedef float | SAMPLE |
Functions | |
PaError | TestRecording (paTestData *dataPtr) |
PaError | TestPlayback (paTestData *dataPtr) |
int | main (void) |
#define FRAMES_PER_BUFFER (256) |
#define NUM_REC_BUFS (0) |
#define NUM_SECONDS (4) |
#define PA_SAMPLE_TYPE paFloat32 |
#define SAMPLE_RATE (22050) |
#define SLEEP_DUR_MSEC (200) |
typedef float SAMPLE |
int main | ( | void | ) |
References paTestData::frameIndex, paTestData::inputStream, paTestData::maxFrameIndex, NUM_SECONDS, paTestData::numSamples, paTestData::outputStream, Pa_CloseStream(), Pa_GetErrorText(), Pa_Initialize(), Pa_Terminate(), paNoError, paTestData::recordedSamples, SAMPLE_RATE, paTestData::samplesPerFrame, TestPlayback(), and TestRecording().
PaError TestPlayback | ( | paTestData * | dataPtr | ) |
PaError TestRecording | ( | paTestData * | dataPtr | ) |
References paTestData::frameIndex, FRAMES_PER_BUFFER, paTestData::inputStream, paTestData::maxFrameIndex, NUM_REC_BUFS, NUM_SECONDS, Pa_OpenStream(), PA_SAMPLE_TYPE, Pa_Sleep(), Pa_StartStream(), Pa_StopStream(), paClipOff, paNoDevice, paNoError, SAMPLE_RATE, paTestData::samplesPerFrame, and SLEEP_DUR_MSEC.