annotate win64-msvc/include/pa_win_ds.h @ 77:4edcd14160a5 pa_catalina

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