PortAudio
2.0
|
#include <stdio.h>
#include <math.h>
#include <windows.h>
#include <mmsystem.h>
#include "portaudio.h"
#include "pa_win_wmme.h"
Data Structures | |
struct | paTestData |
Macros | |
#define | NUM_SECONDS (6) |
#define | SAMPLE_RATE (44100) |
#define | WMME_FRAMES_PER_BUFFER (440) |
#define | WMME_BUFFER_COUNT (6) |
#define | FRAMES_PER_BUFFER WMME_FRAMES_PER_BUFFER /* hardwire portaudio callback buffer size to WMME buffer size for this test */ |
#define | M_PI (3.14159265) |
#define | TABLE_SIZE (2048) |
#define | CHANNEL_COUNT (2) |
Functions | |
int | main (int argc, char *argv[]) |
#define CHANNEL_COUNT (2) |
Referenced by main().
#define FRAMES_PER_BUFFER WMME_FRAMES_PER_BUFFER /* hardwire portaudio callback buffer size to WMME buffer size for this test */ |
Referenced by main().
#define M_PI (3.14159265) |
Referenced by main().
#define NUM_SECONDS (6) |
Referenced by main().
#define SAMPLE_RATE (44100) |
Referenced by main().
#define TABLE_SIZE (2048) |
Referenced by main().
#define WMME_BUFFER_COUNT (6) |
Referenced by main().
#define WMME_FRAMES_PER_BUFFER (440) |
Referenced by main().
int main | ( | int | argc, |
char * | argv[] | ||
) |
References PaWinMmeStreamInfo::bufferCount, CHANNEL_COUNT, PaStreamParameters::channelCount, PaHostApiInfo::defaultOutputDevice, PaStreamParameters::device, PaWinMmeStreamInfo::flags, FRAMES_PER_BUFFER, PaWinMmeStreamInfo::framesPerBuffer, PaStreamParameters::hostApiSpecificStreamInfo, PaWinMmeStreamInfo::hostApiType, M_PI, NUM_SECONDS, Pa_CloseStream(), Pa_GetDeviceInfo(), Pa_GetErrorText(), Pa_GetHostApiInfo(), Pa_HostApiTypeIdToHostApiIndex(), Pa_Initialize(), Pa_IsFormatSupported(), Pa_OpenStream(), Pa_Sleep(), Pa_StartStream(), Pa_StopStream(), Pa_Terminate(), paClipOff, paFloat32, paFormatIsSupported, paMME, paNoError, paWinMmeDontThrottleOverloadedProcessingThread, paWinMmeUseLowLevelLatencyParameters, paTestData::phase, SAMPLE_RATE, PaStreamParameters::sampleFormat, paTestData::sine, PaWinMmeStreamInfo::size, PaStreamParameters::suggestedLatency, TABLE_SIZE, PaWinMmeStreamInfo::version, WMME_BUFFER_COUNT, and WMME_FRAMES_PER_BUFFER.