Jack2 1.9.6
|
00001 #ifndef PA_ASIO_H 00002 #define PA_ASIO_H 00003 /* 00004 * $Id: pa_asio.h,v 1.1.2.2 2006/06/20 14:44:48 letz Exp $ 00005 * PortAudio Portable Real-Time Audio Library 00006 * ASIO specific extensions 00007 * 00008 * Copyright (c) 1999-2000 Ross Bencina and Phil Burk 00009 * 00010 * Permission is hereby granted, free of charge, to any person obtaining 00011 * a copy of this software and associated documentation files 00012 * (the "Software"), to deal in the Software without restriction, 00013 * including without limitation the rights to use, copy, modify, merge, 00014 * publish, distribute, sublicense, and/or sell copies of the Software, 00015 * and to permit persons to whom the Software is furnished to do so, 00016 * subject to the following conditions: 00017 * 00018 * The above copyright notice and this permission notice shall be 00019 * included in all copies or substantial portions of the Software. 00020 * 00021 * Any person wishing to distribute modifications to the Software is 00022 * requested to send the modifications to the original developer so that 00023 * they can be incorporated into the canonical version. 00024 * 00025 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, 00026 * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF 00027 * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. 00028 * IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR 00029 * ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF 00030 * CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION 00031 * WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 00032 * 00033 */ 00034 00040 #include "portaudio.h" 00041 00042 #ifdef __cplusplus 00043 extern "C" 00044 { 00045 #endif /* __cplusplus */ 00046 00047 00062 PaError PaAsio_GetAvailableLatencyValues( PaDeviceIndex device, 00063 long *minLatency, long *maxLatency, long *preferredLatency, long *granularity ); 00064 00065 00072 PaError PaAsio_ShowControlPanel( PaDeviceIndex device, void* systemSpecific ); 00073 00074 00075 00076 00082 PaError PaAsio_GetInputChannelName( PaDeviceIndex device, int channelIndex, 00083 const char** channelName ); 00084 00085 00091 PaError PaAsio_GetOutputChannelName( PaDeviceIndex device, int channelIndex, 00092 const char** channelName ); 00093 00094 00095 #define paAsioUseChannelSelectors (0x01) 00096 00097 typedef struct PaAsioStreamInfo { 00098 unsigned long size; 00099 PaHostApiTypeId hostApiType; 00100 unsigned long version; 00102 unsigned long flags; 00103 00104 /* Support for opening only specific channels of an ASIO device. 00105 If the paAsioUseChannelSelectors flag is set, channelSelectors is a 00106 pointer to an array of integers specifying the device channels to use. 00107 When used, the length of the channelSelectors array must match the 00108 corresponding channelCount parameter to Pa_OpenStream() otherwise a 00109 crash may result. 00110 The values in the selectors array must specify channels within the 00111 range of supported channels for the device or paInvalidChannelCount will 00112 result. 00113 */ 00114 int *channelSelectors; 00115 } 00116 PaAsioStreamInfo; 00117 00118 00119 #ifdef __cplusplus 00120 } 00121 #endif /* __cplusplus */ 00122 00123 #endif /* PA_ASIO_H */