Chris@60: #ifndef PA_WIN_DS_H Chris@60: #define PA_WIN_DS_H Chris@60: /* Chris@60: * $Id: $ Chris@60: * PortAudio Portable Real-Time Audio Library Chris@60: * DirectSound specific extensions Chris@60: * Chris@60: * Copyright (c) 1999-2007 Ross Bencina and Phil Burk Chris@60: * Chris@60: * Permission is hereby granted, free of charge, to any person obtaining Chris@60: * a copy of this software and associated documentation files Chris@60: * (the "Software"), to deal in the Software without restriction, Chris@60: * including without limitation the rights to use, copy, modify, merge, Chris@60: * publish, distribute, sublicense, and/or sell copies of the Software, Chris@60: * and to permit persons to whom the Software is furnished to do so, Chris@60: * subject to the following conditions: Chris@60: * Chris@60: * The above copyright notice and this permission notice shall be Chris@60: * included in all copies or substantial portions of the Software. Chris@60: * Chris@60: * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, Chris@60: * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF Chris@60: * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. Chris@60: * IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR Chris@60: * ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF Chris@60: * CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION Chris@60: * WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. Chris@60: */ Chris@60: Chris@60: /* Chris@60: * The text above constitutes the entire PortAudio license; however, Chris@60: * the PortAudio community also makes the following non-binding requests: Chris@60: * Chris@60: * Any person wishing to distribute modifications to the Software is Chris@60: * requested to send the modifications to the original developer so that Chris@60: * they can be incorporated into the canonical version. It is also Chris@60: * requested that these non-binding requests be included along with the Chris@60: * license above. Chris@60: */ Chris@60: Chris@60: /** @file Chris@60: @ingroup public_header Chris@60: @brief DirectSound-specific PortAudio API extension header file. Chris@60: */ Chris@60: Chris@60: #include "portaudio.h" Chris@60: #include "pa_win_waveformat.h" Chris@60: Chris@60: #ifdef __cplusplus Chris@60: extern "C" Chris@60: { Chris@60: #endif /* __cplusplus */ Chris@60: Chris@60: Chris@60: #define paWinDirectSoundUseLowLevelLatencyParameters (0x01) Chris@60: #define paWinDirectSoundUseChannelMask (0x04) Chris@60: Chris@60: Chris@60: typedef struct PaWinDirectSoundStreamInfo{ Chris@60: unsigned long size; /**< sizeof(PaWinDirectSoundStreamInfo) */ Chris@60: PaHostApiTypeId hostApiType; /**< paDirectSound */ Chris@60: unsigned long version; /**< 2 */ Chris@60: Chris@60: unsigned long flags; /**< enable other features of this struct */ Chris@60: Chris@60: /** Chris@60: low-level latency setting support Chris@60: Sets the size of the DirectSound host buffer. Chris@60: When flags contains the paWinDirectSoundUseLowLevelLatencyParameters Chris@60: this size will be used instead of interpreting the generic latency Chris@60: parameters to Pa_OpenStream(). If the flag is not set this value is ignored. Chris@60: Chris@60: If the stream is a full duplex stream the implementation requires that Chris@60: the values of framesPerBuffer for input and output match (if both are specified). Chris@60: */ Chris@60: unsigned long framesPerBuffer; Chris@60: Chris@60: /** Chris@60: support for WAVEFORMATEXTENSIBLE channel masks. If flags contains Chris@60: paWinDirectSoundUseChannelMask this allows you to specify which speakers Chris@60: to address in a multichannel stream. Constants for channelMask Chris@60: are specified in pa_win_waveformat.h Chris@60: Chris@60: */ Chris@60: PaWinWaveFormatChannelMask channelMask; Chris@60: Chris@60: }PaWinDirectSoundStreamInfo; Chris@60: Chris@60: Chris@60: Chris@60: #ifdef __cplusplus Chris@60: } Chris@60: #endif /* __cplusplus */ Chris@60: Chris@60: #endif /* PA_WIN_DS_H */