|
PortAudio 2.0
|
Attempt to hear difference between dithered and non-dithered signal. More...
Data Structures | |
| struct | paTestData |
Macros | |
| #define | NUM_SECONDS (5) |
| #define | SAMPLE_RATE (44100) |
| #define | M_PI (3.14159265) |
| #define | TABLE_SIZE (200) |
Typedefs | |
| typedef struct paTestData | paTestData |
Functions | |
| PaError | PlaySine (paTestData *data, PaStreamFlags flags, float amplitude) |
| int | main (void) |
Attempt to hear difference between dithered and non-dithered signal.
This only has an effect if the native format is 16 bit.
| #define M_PI (3.14159265) |
Referenced by main().
| #define NUM_SECONDS (5) |
Referenced by PlaySine().
| #define SAMPLE_RATE (44100) |
Referenced by PlaySine().
| #define TABLE_SIZE (200) |
Referenced by main().
| typedef struct paTestData paTestData |
| int main | ( | void | ) |
References M_PI, Pa_GetErrorText(), paClipOff, paDitherOff, paNoFlag, PlaySine(), paTestData::sine, and TABLE_SIZE.
| PaError PlaySine | ( | paTestData * | data, |
| PaStreamFlags | flags, | ||
| float | amplitude ) |
References paTestData::amplitude, PaStreamParameters::channelCount, PaDeviceInfo::defaultLowOutputLatency, PaStreamParameters::device, PaStreamParameters::hostApiSpecificStreamInfo, paTestData::left_phase, NUM_SECONDS, Pa_CloseStream(), Pa_GetDefaultOutputDevice(), Pa_GetDeviceInfo(), Pa_GetStreamCpuLoad(), Pa_Initialize(), Pa_OpenStream(), Pa_Sleep(), Pa_StartStream(), Pa_Terminate(), paFloat32, paNoDevice, paNoError, paTestData::right_phase, SAMPLE_RATE, PaStreamParameters::sampleFormat, and PaStreamParameters::suggestedLatency.
Referenced by main().