PortAudio  2.0
Data Structures | Macros | Typedefs | Functions
pa_win_waveformat.h File Reference

Windows specific PortAudio API extension and utilities header file. More...

Go to the source code of this file.

Data Structures

struct  PaWinWaveFormat
 

Macros

#define PAWIN_SPEAKER_FRONT_LEFT   ((PaWinWaveFormatChannelMask)0x1)
 
#define PAWIN_SPEAKER_FRONT_RIGHT   ((PaWinWaveFormatChannelMask)0x2)
 
#define PAWIN_SPEAKER_FRONT_CENTER   ((PaWinWaveFormatChannelMask)0x4)
 
#define PAWIN_SPEAKER_LOW_FREQUENCY   ((PaWinWaveFormatChannelMask)0x8)
 
#define PAWIN_SPEAKER_BACK_LEFT   ((PaWinWaveFormatChannelMask)0x10)
 
#define PAWIN_SPEAKER_BACK_RIGHT   ((PaWinWaveFormatChannelMask)0x20)
 
#define PAWIN_SPEAKER_FRONT_LEFT_OF_CENTER   ((PaWinWaveFormatChannelMask)0x40)
 
#define PAWIN_SPEAKER_FRONT_RIGHT_OF_CENTER   ((PaWinWaveFormatChannelMask)0x80)
 
#define PAWIN_SPEAKER_BACK_CENTER   ((PaWinWaveFormatChannelMask)0x100)
 
#define PAWIN_SPEAKER_SIDE_LEFT   ((PaWinWaveFormatChannelMask)0x200)
 
#define PAWIN_SPEAKER_SIDE_RIGHT   ((PaWinWaveFormatChannelMask)0x400)
 
#define PAWIN_SPEAKER_TOP_CENTER   ((PaWinWaveFormatChannelMask)0x800)
 
#define PAWIN_SPEAKER_TOP_FRONT_LEFT   ((PaWinWaveFormatChannelMask)0x1000)
 
#define PAWIN_SPEAKER_TOP_FRONT_CENTER   ((PaWinWaveFormatChannelMask)0x2000)
 
#define PAWIN_SPEAKER_TOP_FRONT_RIGHT   ((PaWinWaveFormatChannelMask)0x4000)
 
#define PAWIN_SPEAKER_TOP_BACK_LEFT   ((PaWinWaveFormatChannelMask)0x8000)
 
#define PAWIN_SPEAKER_TOP_BACK_CENTER   ((PaWinWaveFormatChannelMask)0x10000)
 
#define PAWIN_SPEAKER_TOP_BACK_RIGHT   ((PaWinWaveFormatChannelMask)0x20000)
 
#define PAWIN_SPEAKER_RESERVED   ((PaWinWaveFormatChannelMask)0x7FFC0000)
 
#define PAWIN_SPEAKER_ALL   ((PaWinWaveFormatChannelMask)0x80000000)
 
#define PAWIN_SPEAKER_DIRECTOUT   0
 
#define PAWIN_SPEAKER_MONO   (PAWIN_SPEAKER_FRONT_CENTER)
 
#define PAWIN_SPEAKER_STEREO   (PAWIN_SPEAKER_FRONT_LEFT | PAWIN_SPEAKER_FRONT_RIGHT)
 
#define PAWIN_SPEAKER_QUAD
 
#define PAWIN_SPEAKER_SURROUND
 
#define PAWIN_SPEAKER_5POINT1
 
#define PAWIN_SPEAKER_7POINT1
 
#define PAWIN_SPEAKER_5POINT1_SURROUND
 
#define PAWIN_SPEAKER_7POINT1_SURROUND
 
#define PAWIN_SPEAKER_5POINT1_BACK   PAWIN_SPEAKER_5POINT1
 
#define PAWIN_SPEAKER_7POINT1_WIDE   PAWIN_SPEAKER_7POINT1
 
#define PAWIN_SPEAKER_GROUND_FRONT_LEFT   PAWIN_SPEAKER_FRONT_LEFT
 
#define PAWIN_SPEAKER_GROUND_FRONT_CENTER   PAWIN_SPEAKER_FRONT_CENTER
 
#define PAWIN_SPEAKER_GROUND_FRONT_RIGHT   PAWIN_SPEAKER_FRONT_RIGHT
 
#define PAWIN_SPEAKER_GROUND_REAR_LEFT   PAWIN_SPEAKER_BACK_LEFT
 
#define PAWIN_SPEAKER_GROUND_REAR_RIGHT   PAWIN_SPEAKER_BACK_RIGHT
 
#define PAWIN_SPEAKER_TOP_MIDDLE   PAWIN_SPEAKER_TOP_CENTER
 
#define PAWIN_SPEAKER_SUPER_WOOFER   PAWIN_SPEAKER_LOW_FREQUENCY
 
#define PAWIN_SIZEOF_WAVEFORMATEX   18
 
#define PAWIN_SIZEOF_WAVEFORMATEXTENSIBLE   (PAWIN_SIZEOF_WAVEFORMATEX + 22)
 
#define PAWIN_INDEXOF_WVALIDBITSPERSAMPLE   (PAWIN_SIZEOF_WAVEFORMATEX+0)
 
#define PAWIN_INDEXOF_DWCHANNELMASK   (PAWIN_SIZEOF_WAVEFORMATEX+2)
 
#define PAWIN_INDEXOF_SUBFORMAT   (PAWIN_SIZEOF_WAVEFORMATEX+6)
 
#define PAWIN_WAVE_FORMAT_PCM   (1)
 
#define PAWIN_WAVE_FORMAT_IEEE_FLOAT   (3)
 
#define PAWIN_WAVE_FORMAT_DOLBY_AC3_SPDIF   (0x0092)
 
#define PAWIN_WAVE_FORMAT_WMA_SPDIF   (0x0164)
 

Typedefs

typedef unsigned long PaWinWaveFormatChannelMask
 

Functions

int PaWin_SampleFormatToLinearWaveFormatTag (PaSampleFormat sampleFormat)
 
void PaWin_InitializeWaveFormatEx (PaWinWaveFormat *waveFormat, int numChannels, PaSampleFormat sampleFormat, int waveFormatTag, double sampleRate)
 
void PaWin_InitializeWaveFormatExtensible (PaWinWaveFormat *waveFormat, int numChannels, PaSampleFormat sampleFormat, int waveFormatTag, double sampleRate, PaWinWaveFormatChannelMask channelMask)
 
PaWinWaveFormatChannelMask PaWin_DefaultChannelMask (int numChannels)
 

Detailed Description

Windows specific PortAudio API extension and utilities header file.

Macro Definition Documentation

#define PAWIN_INDEXOF_DWCHANNELMASK   (PAWIN_SIZEOF_WAVEFORMATEX+2)
#define PAWIN_INDEXOF_SUBFORMAT   (PAWIN_SIZEOF_WAVEFORMATEX+6)
#define PAWIN_INDEXOF_WVALIDBITSPERSAMPLE   (PAWIN_SIZEOF_WAVEFORMATEX+0)
#define PAWIN_SIZEOF_WAVEFORMATEX   18
#define PAWIN_SIZEOF_WAVEFORMATEXTENSIBLE   (PAWIN_SIZEOF_WAVEFORMATEX + 22)
#define PAWIN_SPEAKER_5POINT1
Value:
#define PAWIN_SPEAKER_FRONT_CENTER
Definition: pa_win_waveformat.h:62
#define PAWIN_SPEAKER_FRONT_RIGHT
Definition: pa_win_waveformat.h:61
#define PAWIN_SPEAKER_FRONT_LEFT
Definition: pa_win_waveformat.h:60
#define PAWIN_SPEAKER_BACK_RIGHT
Definition: pa_win_waveformat.h:65
#define PAWIN_SPEAKER_LOW_FREQUENCY
Definition: pa_win_waveformat.h:63
#define PAWIN_SPEAKER_BACK_LEFT
Definition: pa_win_waveformat.h:64

Referenced by main(), and PaWin_DefaultChannelMask().

#define PAWIN_SPEAKER_5POINT1_BACK   PAWIN_SPEAKER_5POINT1
#define PAWIN_SPEAKER_5POINT1_SURROUND
Value:
#define PAWIN_SPEAKER_FRONT_CENTER
Definition: pa_win_waveformat.h:62
#define PAWIN_SPEAKER_SIDE_LEFT
Definition: pa_win_waveformat.h:69
#define PAWIN_SPEAKER_FRONT_RIGHT
Definition: pa_win_waveformat.h:61
#define PAWIN_SPEAKER_FRONT_LEFT
Definition: pa_win_waveformat.h:60
#define PAWIN_SPEAKER_LOW_FREQUENCY
Definition: pa_win_waveformat.h:63
#define PAWIN_SPEAKER_SIDE_RIGHT
Definition: pa_win_waveformat.h:70
#define PAWIN_SPEAKER_7POINT1
Value:
#define PAWIN_SPEAKER_FRONT_CENTER
Definition: pa_win_waveformat.h:62
#define PAWIN_SPEAKER_FRONT_RIGHT_OF_CENTER
Definition: pa_win_waveformat.h:67
#define PAWIN_SPEAKER_FRONT_RIGHT
Definition: pa_win_waveformat.h:61
#define PAWIN_SPEAKER_FRONT_LEFT
Definition: pa_win_waveformat.h:60
#define PAWIN_SPEAKER_BACK_RIGHT
Definition: pa_win_waveformat.h:65
#define PAWIN_SPEAKER_LOW_FREQUENCY
Definition: pa_win_waveformat.h:63
#define PAWIN_SPEAKER_BACK_LEFT
Definition: pa_win_waveformat.h:64
#define PAWIN_SPEAKER_FRONT_LEFT_OF_CENTER
Definition: pa_win_waveformat.h:66
#define PAWIN_SPEAKER_7POINT1_SURROUND
Value:
#define PAWIN_SPEAKER_FRONT_CENTER
Definition: pa_win_waveformat.h:62
#define PAWIN_SPEAKER_SIDE_LEFT
Definition: pa_win_waveformat.h:69
#define PAWIN_SPEAKER_FRONT_RIGHT
Definition: pa_win_waveformat.h:61
#define PAWIN_SPEAKER_FRONT_LEFT
Definition: pa_win_waveformat.h:60
#define PAWIN_SPEAKER_BACK_RIGHT
Definition: pa_win_waveformat.h:65
#define PAWIN_SPEAKER_LOW_FREQUENCY
Definition: pa_win_waveformat.h:63
#define PAWIN_SPEAKER_SIDE_RIGHT
Definition: pa_win_waveformat.h:70
#define PAWIN_SPEAKER_BACK_LEFT
Definition: pa_win_waveformat.h:64

Referenced by PaWin_DefaultChannelMask().

#define PAWIN_SPEAKER_7POINT1_WIDE   PAWIN_SPEAKER_7POINT1
#define PAWIN_SPEAKER_ALL   ((PaWinWaveFormatChannelMask)0x80000000)
#define PAWIN_SPEAKER_BACK_CENTER   ((PaWinWaveFormatChannelMask)0x100)
#define PAWIN_SPEAKER_BACK_LEFT   ((PaWinWaveFormatChannelMask)0x10)
#define PAWIN_SPEAKER_BACK_RIGHT   ((PaWinWaveFormatChannelMask)0x20)
#define PAWIN_SPEAKER_DIRECTOUT   0
#define PAWIN_SPEAKER_FRONT_CENTER   ((PaWinWaveFormatChannelMask)0x4)
#define PAWIN_SPEAKER_FRONT_LEFT   ((PaWinWaveFormatChannelMask)0x1)
#define PAWIN_SPEAKER_FRONT_LEFT_OF_CENTER   ((PaWinWaveFormatChannelMask)0x40)
#define PAWIN_SPEAKER_FRONT_RIGHT   ((PaWinWaveFormatChannelMask)0x2)
#define PAWIN_SPEAKER_FRONT_RIGHT_OF_CENTER   ((PaWinWaveFormatChannelMask)0x80)
#define PAWIN_SPEAKER_GROUND_FRONT_CENTER   PAWIN_SPEAKER_FRONT_CENTER
#define PAWIN_SPEAKER_GROUND_FRONT_LEFT   PAWIN_SPEAKER_FRONT_LEFT
#define PAWIN_SPEAKER_GROUND_FRONT_RIGHT   PAWIN_SPEAKER_FRONT_RIGHT
#define PAWIN_SPEAKER_GROUND_REAR_LEFT   PAWIN_SPEAKER_BACK_LEFT
#define PAWIN_SPEAKER_GROUND_REAR_RIGHT   PAWIN_SPEAKER_BACK_RIGHT
#define PAWIN_SPEAKER_LOW_FREQUENCY   ((PaWinWaveFormatChannelMask)0x8)
#define PAWIN_SPEAKER_MONO   (PAWIN_SPEAKER_FRONT_CENTER)
#define PAWIN_SPEAKER_QUAD
Value:
#define PAWIN_SPEAKER_FRONT_RIGHT
Definition: pa_win_waveformat.h:61
#define PAWIN_SPEAKER_FRONT_LEFT
Definition: pa_win_waveformat.h:60
#define PAWIN_SPEAKER_BACK_RIGHT
Definition: pa_win_waveformat.h:65
#define PAWIN_SPEAKER_BACK_LEFT
Definition: pa_win_waveformat.h:64

Referenced by PaWin_DefaultChannelMask().

#define PAWIN_SPEAKER_RESERVED   ((PaWinWaveFormatChannelMask)0x7FFC0000)
#define PAWIN_SPEAKER_SIDE_LEFT   ((PaWinWaveFormatChannelMask)0x200)
#define PAWIN_SPEAKER_SIDE_RIGHT   ((PaWinWaveFormatChannelMask)0x400)
#define PAWIN_SPEAKER_STEREO   (PAWIN_SPEAKER_FRONT_LEFT | PAWIN_SPEAKER_FRONT_RIGHT)

Referenced by main(), and PaWin_DefaultChannelMask().

#define PAWIN_SPEAKER_SUPER_WOOFER   PAWIN_SPEAKER_LOW_FREQUENCY
#define PAWIN_SPEAKER_SURROUND
Value:
#define PAWIN_SPEAKER_FRONT_CENTER
Definition: pa_win_waveformat.h:62
#define PAWIN_SPEAKER_FRONT_RIGHT
Definition: pa_win_waveformat.h:61
#define PAWIN_SPEAKER_FRONT_LEFT
Definition: pa_win_waveformat.h:60
#define PAWIN_SPEAKER_BACK_CENTER
Definition: pa_win_waveformat.h:68
#define PAWIN_SPEAKER_TOP_BACK_CENTER   ((PaWinWaveFormatChannelMask)0x10000)
#define PAWIN_SPEAKER_TOP_BACK_LEFT   ((PaWinWaveFormatChannelMask)0x8000)
#define PAWIN_SPEAKER_TOP_BACK_RIGHT   ((PaWinWaveFormatChannelMask)0x20000)
#define PAWIN_SPEAKER_TOP_CENTER   ((PaWinWaveFormatChannelMask)0x800)
#define PAWIN_SPEAKER_TOP_FRONT_CENTER   ((PaWinWaveFormatChannelMask)0x2000)
#define PAWIN_SPEAKER_TOP_FRONT_LEFT   ((PaWinWaveFormatChannelMask)0x1000)
#define PAWIN_SPEAKER_TOP_FRONT_RIGHT   ((PaWinWaveFormatChannelMask)0x4000)
#define PAWIN_SPEAKER_TOP_MIDDLE   PAWIN_SPEAKER_TOP_CENTER
#define PAWIN_WAVE_FORMAT_DOLBY_AC3_SPDIF   (0x0092)
#define PAWIN_WAVE_FORMAT_IEEE_FLOAT   (3)
#define PAWIN_WAVE_FORMAT_PCM   (1)
#define PAWIN_WAVE_FORMAT_WMA_SPDIF   (0x0164)

Typedef Documentation

typedef unsigned long PaWinWaveFormatChannelMask

Function Documentation

PaWinWaveFormatChannelMask PaWin_DefaultChannelMask ( int  numChannels)
void PaWin_InitializeWaveFormatEx ( PaWinWaveFormat waveFormat,
int  numChannels,
PaSampleFormat  sampleFormat,
int  waveFormatTag,
double  sampleRate 
)

References Pa_GetSampleSize().

void PaWin_InitializeWaveFormatExtensible ( PaWinWaveFormat waveFormat,
int  numChannels,
PaSampleFormat  sampleFormat,
int  waveFormatTag,
double  sampleRate,
PaWinWaveFormatChannelMask  channelMask 
)
int PaWin_SampleFormatToLinearWaveFormatTag ( PaSampleFormat  sampleFormat)