#include <alsa/asoundlib.h>#include <sys/poll.h>#include <string.h>#include <limits.h>#include <math.h>#include <pthread.h>#include <signal.h>#include <time.h>#include <sys/mman.h>#include "portaudio.h"#include "pa_util.h"#include "pa_unix_util.h"#include "pa_allocation.h"#include "pa_hostapi.h"#include "pa_stream.h"#include "pa_cpuload.h"#include "pa_process.h"#include "pa_linux_alsa.h"Data Structures | |
| struct | PaAlsaStreamComponent |
| struct | PaAlsaStream |
| struct | PaAlsaHostApiRepresentation |
| struct | PaAlsaDeviceInfo |
| struct | DeviceNames |
Defines | |
| #define | ALSA_PCM_NEW_HW_PARAMS_API |
| #define | ALSA_PCM_NEW_SW_PARAMS_API |
| #define | ENSURE_(expr, code) |
| #define | ASSERT_CALL_(expr, success) |
Enumerations | |
| enum | StreamDirection { StreamDirection_In, StreamDirection_Out } |
Functions | |
| PaError | PaAlsa_Initialize (PaUtilHostApiRepresentation **hostApi, PaHostApiIndex hostApiIndex) |
| int | nearbyint_ (float value) |
| void | PaAlsa_InitializeStreamInfo (PaAlsaStreamInfo *info) |
| void | PaAlsa_EnableRealtimeScheduling (PaStream *s, int enable) |
| void | PaAlsa_EnableWatchdog (PaStream *s, int enable) |
| #define ALSA_PCM_NEW_HW_PARAMS_API |
| #define ALSA_PCM_NEW_SW_PARAMS_API |
| #define ASSERT_CALL_ | ( | expr, | |||
| success | ) |
Value:
aErr_ = (expr); \
assert( success == aErr_ );
| #define ENSURE_ | ( | expr, | |||
| code | ) |
Value:
do { \ if( UNLIKELY( (aErr_ = (expr)) < 0 ) ) \ { \ /* PaUtil_SetLastHostErrorInfo should only be used in the main thread */ \ if( (code) == paUnanticipatedHostError && pthread_equal( pthread_self(), paUnixMainThread) ) \ { \ PaUtil_SetLastHostErrorInfo( paALSA, aErr_, snd_strerror( aErr_ ) ); \ } \ PaUtil_DebugPrint( "Expression '" #expr "' failed in '" __FILE__ "', line: " STRINGIZE( __LINE__ ) "\n" ); \ if( (code) == paUnanticipatedHostError ) \ PA_DEBUG(( "Host error description: %s\n", snd_strerror( aErr_ ) )); \ result = (code); \ goto error; \ } \ } while( 0 );
| enum StreamDirection |
| int nearbyint_ | ( | float | value | ) |
| void PaAlsa_EnableRealtimeScheduling | ( | PaStream * | s, | |
| int | enable | |||
| ) |
| void PaAlsa_EnableWatchdog | ( | PaStream * | s, | |
| int | enable | |||
| ) |
| PaError PaAlsa_Initialize | ( | PaUtilHostApiRepresentation ** | hostApi, | |
| PaHostApiIndex | hostApiIndex | |||
| ) |
| void PaAlsa_InitializeStreamInfo | ( | PaAlsaStreamInfo * | info | ) |
1.4.7