Jack2: pa_asio.h Source File

Jack2 1.9.12

pa_asio.h
Go to the documentation of this file.
1 #ifndef PA_ASIO_H
2 #define PA_ASIO_H
3 /*
4 * $Id: pa_asio.h 1667 2011-05-02 15:49:20Z rossb $
5 * PortAudio Portable Real-Time Audio Library
6 * ASIO specific extensions
7 *
8 * Copyright (c) 1999-2000 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
47 #include "portaudio.h"
48
49 #ifdef __cplusplus
50 extern "C"
51 {
52 #endif /* __cplusplus */
53
54
70 PaError PaAsio_GetAvailableBufferSizes( PaDeviceIndex device,
71 long *minBufferSizeFrames, long *maxBufferSizeFrames, long *preferredBufferSizeFrames, long *granularity );
72
73
78 #define PaAsio_GetAvailableLatencyValues PaAsio_GetAvailableBufferSizes
79
80
87 PaError PaAsio_ShowControlPanel( PaDeviceIndex device, void* systemSpecific );
88
89
90
91
97 PaError PaAsio_GetInputChannelName( PaDeviceIndex device, int channelIndex,
98 const char** channelName );
99
100
106 PaError PaAsio_GetOutputChannelName( PaDeviceIndex device, int channelIndex,
107 const char** channelName );
108
109
120 PaError PaAsio_SetStreamSampleRate( PaStream* stream, double sampleRate );
121
122
123 #define paAsioUseChannelSelectors (0x01)
124
125 typedef struct PaAsioStreamInfo{
126 unsigned long size;
127 PaHostApiTypeId hostApiType;
128 unsigned long version;
130 unsigned long flags;
131
132 /* Support for opening only specific channels of an ASIO device.
133 If the paAsioUseChannelSelectors flag is set, channelSelectors is a
134 pointer to an array of integers specifying the device channels to use.
135 When used, the length of the channelSelectors array must match the
136 corresponding channelCount parameter to Pa_OpenStream() otherwise a
137 crash may result.
138 The values in the selectors array must specify channels within the
139 range of supported channels for the device or paInvalidChannelCount will
140 result.
141 */
142 int *channelSelectors;
143 }PaAsioStreamInfo;
144
145
146 #ifdef __cplusplus
147 }
148 #endif /* __cplusplus */
149
150 #endif /* PA_ASIO_H */
PaHostApiTypeId
PaHostApiTypeId
Definition: portaudio.h:216
PaAsioStreamInfo
Definition: pa_asio.h:125
portaudio.h
The PortAudio API.
PaAsio_GetInputChannelName
PaError PaAsio_GetInputChannelName(PaDeviceIndex device, int channelIndex, const char **channelName)
PaAsioStreamInfo::size
unsigned long size
Definition: pa_asio.h:126
PaStream
void PaStream
Definition: portaudio.h:572
PaAsio_SetStreamSampleRate
PaError PaAsio_SetStreamSampleRate(PaStream *stream, double sampleRate)
PaAsio_ShowControlPanel
PaError PaAsio_ShowControlPanel(PaDeviceIndex device, void *systemSpecific)
PaAsioStreamInfo::version
unsigned long version
Definition: pa_asio.h:128
PaError
int PaError
Definition: portaudio.h:63
PaDeviceIndex
int PaDeviceIndex
Definition: portaudio.h:153
PaAsio_GetOutputChannelName
PaError PaAsio_GetOutputChannelName(PaDeviceIndex device, int channelIndex, const char **channelName)
PaAsio_GetAvailableBufferSizes
PaError PaAsio_GetAvailableBufferSizes(PaDeviceIndex device, long *minBufferSizeFrames, long *maxBufferSizeFrames, long *preferredBufferSizeFrames, long *granularity)
PaAsioStreamInfo::hostApiType
PaHostApiTypeId hostApiType
Definition: pa_asio.h:127