#include <stdio.h>
#include <math.h>
#include <windows.h>
#include <mmsystem.h>
#include "portaudio.h"
#include "pa_win_wmme.h"
Define Documentation
#define CHANNEL_COUNT (2) |
#define FRAMES_PER_BUFFER WMME_FRAMES_PER_BUFFER |
#define M_PI (3.14159265) |
#define SAMPLE_RATE (44100) |
#define TABLE_SIZE (2048) |
#define WMME_BUFFER_COUNT (6) |
#define WMME_FRAMES_PER_BUFFER (440) |
Function Documentation
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.