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