00001 #ifndef PA_HOSTAPI_H
00002 #define PA_HOSTAPI_H
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027
00028
00029
00030
00031
00032
00033
00034
00035
00036
00037
00038
00039
00040
00041
00050 #include "portaudio.h"
00051
00052 #ifdef __cplusplus
00053 extern "C"
00054 {
00055 #endif
00056
00057
00063 typedef struct PaUtilPrivatePaFrontHostApiInfo {
00064
00065
00066 unsigned long baseDeviceIndex;
00067 }PaUtilPrivatePaFrontHostApiInfo;
00068
00069
00078 typedef struct PaUtilHostApiSpecificStreamInfoHeader
00079 {
00080 unsigned long size;
00081 PaHostApiTypeId hostApiType;
00082 unsigned long version;
00083 } PaUtilHostApiSpecificStreamInfoHeader;
00084
00085
00086
00090 typedef struct PaUtilHostApiRepresentation {
00091 PaUtilPrivatePaFrontHostApiInfo privatePaFrontInfo;
00092
00100 PaHostApiInfo info;
00101
00102 PaDeviceInfo** deviceInfos;
00103
00109 void (*Terminate)( struct PaUtilHostApiRepresentation *hostApi );
00110
00206 PaError (*OpenStream)( struct PaUtilHostApiRepresentation *hostApi,
00207 PaStream** stream,
00208 const PaStreamParameters *inputParameters,
00209 const PaStreamParameters *outputParameters,
00210 double sampleRate,
00211 unsigned long framesPerCallback,
00212 PaStreamFlags streamFlags,
00213 PaStreamCallback *streamCallback,
00214 void *userData );
00215
00216
00217 PaError (*IsFormatSupported)( struct PaUtilHostApiRepresentation *hostApi,
00218 const PaStreamParameters *inputParameters,
00219 const PaStreamParameters *outputParameters,
00220 double sampleRate );
00221 } PaUtilHostApiRepresentation;
00222
00223
00229 typedef PaError PaUtilHostApiInitializer( PaUtilHostApiRepresentation**, PaHostApiIndex );
00230
00231
00239 extern PaUtilHostApiInitializer *paHostApiInitializers[];
00240
00241
00247 extern int paDefaultHostApiIndex;
00248
00249
00250 #ifdef __cplusplus
00251 }
00252 #endif
00253 #endif