PortAudio 2.0

pa_linux_alsa.h

Go to the documentation of this file.
00001 #ifndef PA_LINUX_ALSA_H
00002 #define PA_LINUX_ALSA_H
00003 
00004 /*
00005  * $Id: pa_linux_alsa.h 1597 2011-02-11 00:15:51Z dmitrykos $
00006  * PortAudio Portable Real-Time Audio Library
00007  * ALSA-specific extensions
00008  *
00009  * Copyright (c) 1999-2000 Ross Bencina and Phil Burk
00010  *
00011  * Permission is hereby granted, free of charge, to any person obtaining
00012  * a copy of this software and associated documentation files
00013  * (the "Software"), to deal in the Software without restriction,
00014  * including without limitation the rights to use, copy, modify, merge,
00015  * publish, distribute, sublicense, and/or sell copies of the Software,
00016  * and to permit persons to whom the Software is furnished to do so,
00017  * subject to the following conditions:
00018  *
00019  * The above copyright notice and this permission notice shall be
00020  * included in all copies or substantial portions of the Software.
00021  *
00022  * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
00023  * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
00024  * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
00025  * IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR
00026  * ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF
00027  * CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
00028  * WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
00029  */
00030 
00031 /*
00032  * The text above constitutes the entire PortAudio license; however, 
00033  * the PortAudio community also makes the following non-binding requests:
00034  *
00035  * Any person wishing to distribute modifications to the Software is
00036  * requested to send the modifications to the original developer so that
00037  * they can be incorporated into the canonical version. It is also 
00038  * requested that these non-binding requests be included along with the 
00039  * license above.
00040  */
00041 
00047 #include "portaudio.h"
00048 
00049 #ifdef __cplusplus
00050 extern "C" {
00051 #endif
00052 
00053 typedef struct PaAlsaStreamInfo
00054 {
00055     unsigned long size;
00056     PaHostApiTypeId hostApiType;
00057     unsigned long version;
00058 
00059     const char *deviceString;
00060 }
00061 PaAlsaStreamInfo;
00062 
00064 void PaAlsa_InitializeStreamInfo( PaAlsaStreamInfo *info );
00065 
00071 void PaAlsa_EnableRealtimeScheduling( PaStream *s, int enable );
00072 
00073 #if 0
00074 void PaAlsa_EnableWatchdog( PaStream *s, int enable );
00075 #endif
00076 
00078 PaError PaAlsa_GetStreamInputCard( PaStream *s, int *card );
00079 
00081 PaError PaAlsa_GetStreamOutputCard( PaStream *s, int *card );
00082 
00089 PaError PaAlsa_SetNumPeriods( int numPeriods );
00090 
00094 PaError PaAlsa_SetRetriesBusy( int retries );
00095 
00101 void PaAlsa_SetLibraryPathName( const char *pathName );
00102 
00103 #ifdef __cplusplus
00104 }
00105 #endif
00106 
00107 #endif

Generated for PortAudio by  doxygen1.7.3