PortAudio
2.0
|
Use WMME-specific interface to send raw AC3 data to a S/PDIF output. More...
#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 (20) |
#define | SAMPLE_RATE (48000) |
#define | FRAMES_PER_BUFFER (64) |
#define | M_PI (3.14159265) |
#define | TABLE_SIZE (100) |
#define | CHANNEL_COUNT (2) |
Functions | |
int | main (int argc, char *argv[]) |
Use WMME-specific interface to send raw AC3 data to a S/PDIF output.
#define CHANNEL_COUNT (2) |
Referenced by main().
#define FRAMES_PER_BUFFER (64) |
Referenced by main().
#define M_PI (3.14159265) |
#define NUM_SECONDS (20) |
Referenced by main().
#define SAMPLE_RATE (48000) |
Referenced by main().
#define TABLE_SIZE (100) |
int main | ( | int | argc, |
char * | argv[] | ||
) |
References paTestData::buffer, paTestData::bufferSampleCount, CHANNEL_COUNT, PaStreamParameters::channelCount, PaDeviceInfo::defaultLowOutputLatency, PaHostApiInfo::defaultOutputDevice, PaStreamParameters::device, PaWinMmeStreamInfo::flags, FRAMES_PER_BUFFER, PaStreamParameters::hostApiSpecificStreamInfo, PaWinMmeStreamInfo::hostApiType, 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(), paFormatIsSupported, paInt16, paMME, paNoError, paWinMmeWaveFormatDolbyAc3Spdif, paTestData::playbackIndex, SAMPLE_RATE, PaStreamParameters::sampleFormat, PaWinMmeStreamInfo::size, PaStreamParameters::suggestedLatency, and PaWinMmeStreamInfo::version.