annotate win64-msvc/include/pa_win_ds.h @ 169:223a55898ab9 tip default

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