#include <stdio.h>#include <math.h>#include <string.h>#include "portaudio.h"Data Structures | |
| struct | paTestData |
Defines | |
| #define | OUTPUT_DEVICE (Pa_GetDefaultOutputDeviceID()) |
| #define | SAMPLE_RATE (22050) |
| #define | FRAMES_PER_BUFFER (256) |
| #define | MIN_LATENCY_MSEC (400) |
| #define | NUM_BUFFERS ((MIN_LATENCY_MSEC * SAMPLE_RATE) / (FRAMES_PER_BUFFER * 1000)) |
Functions | |
| int | PaFindDeviceByName (const char *name) |
| int | main (void) |
| #define FRAMES_PER_BUFFER (256) |
| #define MIN_LATENCY_MSEC (400) |
| #define NUM_BUFFERS ((MIN_LATENCY_MSEC * SAMPLE_RATE) / (FRAMES_PER_BUFFER * 1000)) |
| #define OUTPUT_DEVICE (Pa_GetDefaultOutputDeviceID()) |
| #define SAMPLE_RATE (22050) |
| int main | ( | void | ) |
References FRAMES_PER_BUFFER, paTestData::liveChannel, PaDeviceInfo::maxInputChannels, PaDeviceInfo::name, NUM_BUFFERS, paTestData::numChannels, OUTPUT_DEVICE, Pa_CloseStream(), Pa_GetDeviceInfo(), Pa_GetErrorText(), Pa_Initialize(), Pa_OpenStream(), Pa_StartStream(), Pa_StopStream(), Pa_Terminate(), paClipOff, PaFindDeviceByName(), paFloat32, paNoDevice, paNoError, and SAMPLE_RATE.
| int PaFindDeviceByName | ( | const char * | name | ) |
References PaDeviceInfo::name, Pa_GetDeviceInfo(), and paNoDevice.
Referenced by main().
1.6.1