annotate win64-msvc/include/pa_win_ds.h @ 48:9530b331f8c1

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