annotate win64-msvc/include/pa_win_ds.h @ 142:75bf92aa2d1f

Fixes and updates for 32-bit Windows build
author Chris Cannam <cannam@all-day-breakfast.com>
date Mon, 09 Jan 2017 11:53:06 +0000
parents 1c067f014d80
children 95867ba8caa8
rev   line source
cannam@130 1 #ifndef PA_WIN_DS_H
cannam@130 2 #define PA_WIN_DS_H
cannam@130 3 /*
cannam@130 4 * $Id: $
cannam@130 5 * PortAudio Portable Real-Time Audio Library
cannam@130 6 * DirectSound specific extensions
cannam@130 7 *
cannam@130 8 * Copyright (c) 1999-2007 Ross Bencina and Phil Burk
cannam@130 9 *
cannam@130 10 * Permission is hereby granted, free of charge, to any person obtaining
cannam@130 11 * a copy of this software and associated documentation files
cannam@130 12 * (the "Software"), to deal in the Software without restriction,
cannam@130 13 * including without limitation the rights to use, copy, modify, merge,
cannam@130 14 * publish, distribute, sublicense, and/or sell copies of the Software,
cannam@130 15 * and to permit persons to whom the Software is furnished to do so,
cannam@130 16 * subject to the following conditions:
cannam@130 17 *
cannam@130 18 * The above copyright notice and this permission notice shall be
cannam@130 19 * included in all copies or substantial portions of the Software.
cannam@130 20 *
cannam@130 21 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
cannam@130 22 * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
cannam@130 23 * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
cannam@130 24 * IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR
cannam@130 25 * ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF
cannam@130 26 * CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
cannam@130 27 * WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
cannam@130 28 */
cannam@130 29
cannam@130 30 /*
cannam@130 31 * The text above constitutes the entire PortAudio license; however,
cannam@130 32 * the PortAudio community also makes the following non-binding requests:
cannam@130 33 *
cannam@130 34 * Any person wishing to distribute modifications to the Software is
cannam@130 35 * requested to send the modifications to the original developer so that
cannam@130 36 * they can be incorporated into the canonical version. It is also
cannam@130 37 * requested that these non-binding requests be included along with the
cannam@130 38 * license above.
cannam@130 39 */
cannam@130 40
cannam@130 41 /** @file
cannam@130 42 @ingroup public_header
cannam@130 43 @brief DirectSound-specific PortAudio API extension header file.
cannam@130 44 */
cannam@130 45
cannam@130 46 #include "portaudio.h"
cannam@130 47 #include "pa_win_waveformat.h"
cannam@130 48
cannam@130 49 #ifdef __cplusplus
cannam@130 50 extern "C"
cannam@130 51 {
cannam@130 52 #endif /* __cplusplus */
cannam@130 53
cannam@130 54
cannam@130 55 #define paWinDirectSoundUseLowLevelLatencyParameters (0x01)
cannam@130 56 #define paWinDirectSoundUseChannelMask (0x04)
cannam@130 57
cannam@130 58
cannam@130 59 typedef struct PaWinDirectSoundStreamInfo{
cannam@130 60 unsigned long size; /**< sizeof(PaWinDirectSoundStreamInfo) */
cannam@130 61 PaHostApiTypeId hostApiType; /**< paDirectSound */
cannam@130 62 unsigned long version; /**< 2 */
cannam@130 63
cannam@130 64 unsigned long flags; /**< enable other features of this struct */
cannam@130 65
cannam@130 66 /**
cannam@130 67 low-level latency setting support
cannam@130 68 Sets the size of the DirectSound host buffer.
cannam@130 69 When flags contains the paWinDirectSoundUseLowLevelLatencyParameters
cannam@130 70 this size will be used instead of interpreting the generic latency
cannam@130 71 parameters to Pa_OpenStream(). If the flag is not set this value is ignored.
cannam@130 72
cannam@130 73 If the stream is a full duplex stream the implementation requires that
cannam@130 74 the values of framesPerBuffer for input and output match (if both are specified).
cannam@130 75 */
cannam@130 76 unsigned long framesPerBuffer;
cannam@130 77
cannam@130 78 /**
cannam@130 79 support for WAVEFORMATEXTENSIBLE channel masks. If flags contains
cannam@130 80 paWinDirectSoundUseChannelMask this allows you to specify which speakers
cannam@130 81 to address in a multichannel stream. Constants for channelMask
cannam@130 82 are specified in pa_win_waveformat.h
cannam@130 83
cannam@130 84 */
cannam@130 85 PaWinWaveFormatChannelMask channelMask;
cannam@130 86
cannam@130 87 }PaWinDirectSoundStreamInfo;
cannam@130 88
cannam@130 89
cannam@130 90
cannam@130 91 #ifdef __cplusplus
cannam@130 92 }
cannam@130 93 #endif /* __cplusplus */
cannam@130 94
cannam@130 95 #endif /* PA_WIN_DS_H */