PortAudio 2.0

Data Structures | Macros | Typedefs | Functions
pa_win_waveformat.h File Reference
Public API definitions for users of PortAudio

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.

Definition in file pa_win_waveformat.h.

## Macro Definition Documentation

## ◆ PAWIN_INDEXOF_DWCHANNELMASK

#define PAWIN_INDEXOF_DWCHANNELMASK (PAWIN_SIZEOF_WAVEFORMATEX+2)

Definition at line 157 of file pa_win_waveformat.h.

## ◆ PAWIN_INDEXOF_SUBFORMAT

#define PAWIN_INDEXOF_SUBFORMAT (PAWIN_SIZEOF_WAVEFORMATEX+6)

Definition at line 158 of file pa_win_waveformat.h.

## ◆ PAWIN_INDEXOF_WVALIDBITSPERSAMPLE

#define PAWIN_INDEXOF_WVALIDBITSPERSAMPLE (PAWIN_SIZEOF_WAVEFORMATEX+0)

Definition at line 156 of file pa_win_waveformat.h.

## ◆ PAWIN_SIZEOF_WAVEFORMATEX

#define PAWIN_SIZEOF_WAVEFORMATEX 18

Definition at line 136 of file pa_win_waveformat.h.

## ◆ PAWIN_SIZEOF_WAVEFORMATEXTENSIBLE

#define PAWIN_SIZEOF_WAVEFORMATEXTENSIBLE (PAWIN_SIZEOF_WAVEFORMATEX + 22)

Definition at line 137 of file pa_win_waveformat.h.

## ◆ PAWIN_SPEAKER_5POINT1

#define PAWIN_SPEAKER_5POINT1

Value:
(PAWIN_SPEAKER_FRONT_LEFT | PAWIN_SPEAKER_FRONT_RIGHT | \
PAWIN_SPEAKER_FRONT_CENTER | PAWIN_SPEAKER_LOW_FREQUENCY | \
PAWIN_SPEAKER_BACK_LEFT | PAWIN_SPEAKER_BACK_RIGHT)

Definition at line 93 of file pa_win_waveformat.h.

## ◆ PAWIN_SPEAKER_5POINT1_BACK

#define PAWIN_SPEAKER_5POINT1_BACK PAWIN_SPEAKER_5POINT1

Definition at line 113 of file pa_win_waveformat.h.

## ◆ PAWIN_SPEAKER_5POINT1_SURROUND

#define PAWIN_SPEAKER_5POINT1_SURROUND

Value:
(PAWIN_SPEAKER_FRONT_LEFT | PAWIN_SPEAKER_FRONT_RIGHT | \
PAWIN_SPEAKER_FRONT_CENTER | PAWIN_SPEAKER_LOW_FREQUENCY | \
PAWIN_SPEAKER_SIDE_LEFT | PAWIN_SPEAKER_SIDE_RIGHT)

Definition at line 100 of file pa_win_waveformat.h.

## ◆ PAWIN_SPEAKER_7POINT1

#define PAWIN_SPEAKER_7POINT1

Value:
(PAWIN_SPEAKER_FRONT_LEFT | PAWIN_SPEAKER_FRONT_RIGHT | \
PAWIN_SPEAKER_FRONT_CENTER | PAWIN_SPEAKER_LOW_FREQUENCY | \
PAWIN_SPEAKER_BACK_LEFT | PAWIN_SPEAKER_BACK_RIGHT | \
PAWIN_SPEAKER_FRONT_LEFT_OF_CENTER | PAWIN_SPEAKER_FRONT_RIGHT_OF_CENTER)

Definition at line 96 of file pa_win_waveformat.h.

## ◆ PAWIN_SPEAKER_7POINT1_SURROUND

#define PAWIN_SPEAKER_7POINT1_SURROUND

Value:
(PAWIN_SPEAKER_FRONT_LEFT | PAWIN_SPEAKER_FRONT_RIGHT | \
PAWIN_SPEAKER_FRONT_CENTER | PAWIN_SPEAKER_LOW_FREQUENCY | \
PAWIN_SPEAKER_BACK_LEFT | PAWIN_SPEAKER_BACK_RIGHT | \
PAWIN_SPEAKER_SIDE_LEFT | PAWIN_SPEAKER_SIDE_RIGHT)

Definition at line 103 of file pa_win_waveformat.h.

## ◆ PAWIN_SPEAKER_7POINT1_WIDE

#define PAWIN_SPEAKER_7POINT1_WIDE PAWIN_SPEAKER_7POINT1

Definition at line 114 of file pa_win_waveformat.h.

## ◆ PAWIN_SPEAKER_ALL

#define PAWIN_SPEAKER_ALL ((PaWinWaveFormatChannelMask)0x80000000)

Definition at line 83 of file pa_win_waveformat.h.

## ◆ PAWIN_SPEAKER_BACK_CENTER

#define PAWIN_SPEAKER_BACK_CENTER ((PaWinWaveFormatChannelMask)0x100)

Definition at line 68 of file pa_win_waveformat.h.

## ◆ PAWIN_SPEAKER_BACK_LEFT

#define PAWIN_SPEAKER_BACK_LEFT ((PaWinWaveFormatChannelMask)0x10)

Definition at line 64 of file pa_win_waveformat.h.

## ◆ PAWIN_SPEAKER_BACK_RIGHT

#define PAWIN_SPEAKER_BACK_RIGHT ((PaWinWaveFormatChannelMask)0x20)

Definition at line 65 of file pa_win_waveformat.h.

## ◆ PAWIN_SPEAKER_DIRECTOUT

#define PAWIN_SPEAKER_DIRECTOUT 0

Definition at line 86 of file pa_win_waveformat.h.

## ◆ PAWIN_SPEAKER_FRONT_CENTER

#define PAWIN_SPEAKER_FRONT_CENTER ((PaWinWaveFormatChannelMask)0x4)

Definition at line 62 of file pa_win_waveformat.h.

## ◆ PAWIN_SPEAKER_FRONT_LEFT

#define PAWIN_SPEAKER_FRONT_LEFT ((PaWinWaveFormatChannelMask)0x1)

Definition at line 60 of file pa_win_waveformat.h.

## ◆ PAWIN_SPEAKER_FRONT_LEFT_OF_CENTER

#define PAWIN_SPEAKER_FRONT_LEFT_OF_CENTER ((PaWinWaveFormatChannelMask)0x40)

Definition at line 66 of file pa_win_waveformat.h.

## ◆ PAWIN_SPEAKER_FRONT_RIGHT

#define PAWIN_SPEAKER_FRONT_RIGHT ((PaWinWaveFormatChannelMask)0x2)

Definition at line 61 of file pa_win_waveformat.h.

## ◆ PAWIN_SPEAKER_FRONT_RIGHT_OF_CENTER

#define PAWIN_SPEAKER_FRONT_RIGHT_OF_CENTER ((PaWinWaveFormatChannelMask)0x80)

Definition at line 67 of file pa_win_waveformat.h.

## ◆ PAWIN_SPEAKER_GROUND_FRONT_CENTER

#define PAWIN_SPEAKER_GROUND_FRONT_CENTER PAWIN_SPEAKER_FRONT_CENTER

Definition at line 118 of file pa_win_waveformat.h.

## ◆ PAWIN_SPEAKER_GROUND_FRONT_LEFT

#define PAWIN_SPEAKER_GROUND_FRONT_LEFT PAWIN_SPEAKER_FRONT_LEFT

Definition at line 117 of file pa_win_waveformat.h.

## ◆ PAWIN_SPEAKER_GROUND_FRONT_RIGHT

#define PAWIN_SPEAKER_GROUND_FRONT_RIGHT PAWIN_SPEAKER_FRONT_RIGHT

Definition at line 119 of file pa_win_waveformat.h.

## ◆ PAWIN_SPEAKER_GROUND_REAR_LEFT

#define PAWIN_SPEAKER_GROUND_REAR_LEFT PAWIN_SPEAKER_BACK_LEFT

Definition at line 120 of file pa_win_waveformat.h.

## ◆ PAWIN_SPEAKER_GROUND_REAR_RIGHT

#define PAWIN_SPEAKER_GROUND_REAR_RIGHT PAWIN_SPEAKER_BACK_RIGHT

Definition at line 121 of file pa_win_waveformat.h.

## ◆ PAWIN_SPEAKER_LOW_FREQUENCY

#define PAWIN_SPEAKER_LOW_FREQUENCY ((PaWinWaveFormatChannelMask)0x8)

Definition at line 63 of file pa_win_waveformat.h.

## ◆ PAWIN_SPEAKER_MONO

#define PAWIN_SPEAKER_MONO (PAWIN_SPEAKER_FRONT_CENTER)

Definition at line 87 of file pa_win_waveformat.h.

## ◆ PAWIN_SPEAKER_QUAD

#define PAWIN_SPEAKER_QUAD

Value:
(PAWIN_SPEAKER_FRONT_LEFT | PAWIN_SPEAKER_FRONT_RIGHT | \
PAWIN_SPEAKER_BACK_LEFT | PAWIN_SPEAKER_BACK_RIGHT)

Definition at line 89 of file pa_win_waveformat.h.

## ◆ PAWIN_SPEAKER_RESERVED

#define PAWIN_SPEAKER_RESERVED ((PaWinWaveFormatChannelMask)0x7FFC0000)

Definition at line 80 of file pa_win_waveformat.h.

## ◆ PAWIN_SPEAKER_SIDE_LEFT

#define PAWIN_SPEAKER_SIDE_LEFT ((PaWinWaveFormatChannelMask)0x200)

Definition at line 69 of file pa_win_waveformat.h.

## ◆ PAWIN_SPEAKER_SIDE_RIGHT

#define PAWIN_SPEAKER_SIDE_RIGHT ((PaWinWaveFormatChannelMask)0x400)

Definition at line 70 of file pa_win_waveformat.h.

## ◆ PAWIN_SPEAKER_STEREO

#define PAWIN_SPEAKER_STEREO (PAWIN_SPEAKER_FRONT_LEFT | PAWIN_SPEAKER_FRONT_RIGHT)

Definition at line 88 of file pa_win_waveformat.h.

## ◆ PAWIN_SPEAKER_SUPER_WOOFER

#define PAWIN_SPEAKER_SUPER_WOOFER PAWIN_SPEAKER_LOW_FREQUENCY

Definition at line 123 of file pa_win_waveformat.h.

## ◆ PAWIN_SPEAKER_SURROUND

#define PAWIN_SPEAKER_SURROUND

Value:
(PAWIN_SPEAKER_FRONT_LEFT | PAWIN_SPEAKER_FRONT_RIGHT | \
PAWIN_SPEAKER_FRONT_CENTER | PAWIN_SPEAKER_BACK_CENTER)

Definition at line 91 of file pa_win_waveformat.h.

## ◆ PAWIN_SPEAKER_TOP_BACK_CENTER

#define PAWIN_SPEAKER_TOP_BACK_CENTER ((PaWinWaveFormatChannelMask)0x10000)

Definition at line 76 of file pa_win_waveformat.h.

## ◆ PAWIN_SPEAKER_TOP_BACK_LEFT

#define PAWIN_SPEAKER_TOP_BACK_LEFT ((PaWinWaveFormatChannelMask)0x8000)

Definition at line 75 of file pa_win_waveformat.h.

## ◆ PAWIN_SPEAKER_TOP_BACK_RIGHT

#define PAWIN_SPEAKER_TOP_BACK_RIGHT ((PaWinWaveFormatChannelMask)0x20000)

Definition at line 77 of file pa_win_waveformat.h.

## ◆ PAWIN_SPEAKER_TOP_CENTER

#define PAWIN_SPEAKER_TOP_CENTER ((PaWinWaveFormatChannelMask)0x800)

Definition at line 71 of file pa_win_waveformat.h.

## ◆ PAWIN_SPEAKER_TOP_FRONT_CENTER

#define PAWIN_SPEAKER_TOP_FRONT_CENTER ((PaWinWaveFormatChannelMask)0x2000)

Definition at line 73 of file pa_win_waveformat.h.

## ◆ PAWIN_SPEAKER_TOP_FRONT_LEFT

#define PAWIN_SPEAKER_TOP_FRONT_LEFT ((PaWinWaveFormatChannelMask)0x1000)

Definition at line 72 of file pa_win_waveformat.h.

## ◆ PAWIN_SPEAKER_TOP_FRONT_RIGHT

#define PAWIN_SPEAKER_TOP_FRONT_RIGHT ((PaWinWaveFormatChannelMask)0x4000)

Definition at line 74 of file pa_win_waveformat.h.

## ◆ PAWIN_SPEAKER_TOP_MIDDLE

#define PAWIN_SPEAKER_TOP_MIDDLE PAWIN_SPEAKER_TOP_CENTER

Definition at line 122 of file pa_win_waveformat.h.

## ◆ PAWIN_WAVE_FORMAT_DOLBY_AC3_SPDIF

#define PAWIN_WAVE_FORMAT_DOLBY_AC3_SPDIF (0x0092)

Definition at line 168 of file pa_win_waveformat.h.

## ◆ PAWIN_WAVE_FORMAT_IEEE_FLOAT

#define PAWIN_WAVE_FORMAT_IEEE_FLOAT (3)

Definition at line 167 of file pa_win_waveformat.h.

## ◆ PAWIN_WAVE_FORMAT_PCM

#define PAWIN_WAVE_FORMAT_PCM (1)

Definition at line 166 of file pa_win_waveformat.h.

## ◆ PAWIN_WAVE_FORMAT_WMA_SPDIF

#define PAWIN_WAVE_FORMAT_WMA_SPDIF (0x0164)

Definition at line 169 of file pa_win_waveformat.h.

## Typedef Documentation

## ◆ PaWinWaveFormatChannelMask

typedef unsigned long PaWinWaveFormatChannelMask

Definition at line 57 of file pa_win_waveformat.h.