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