annotate src/portaudio_20140130/include/pa_win_ds.h @ 124:e3d5853d5918

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