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