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