annotate src/portaudio/include/pa_win_ds.h @ 4:e13257ea84a4

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