#include "portaudio.h"
Go to the source code of this file.
Data Structures | |
struct | PaAlsaStreamInfo |
Functions | |
void | PaAlsa_InitializeStreamInfo (PaAlsaStreamInfo *info) |
void | PaAlsa_EnableRealtimeScheduling (PaStream *s, int enable) |
PaError | PaAlsa_GetStreamInputCard (PaStream *s, int *card) |
PaError | PaAlsa_GetStreamOutputCard (PaStream *s, int *card) |
PaError | PaAlsa_SetNumPeriods (int numPeriods) |
ALSA-specific PortAudio API extension header file.
void PaAlsa_EnableRealtimeScheduling | ( | PaStream * | s, | |
int | enable | |||
) |
Instruct whether to enable real-time priority when starting the audio thread.
If this is turned on by the stream is started, the audio callback thread will be created with the FIFO scheduling policy, which is suitable for realtime operation.
References PaAlsaStream::rtSched.
Get the ALSA-lib card index of this stream's input device.
References PaAlsaStream::capture, PA_ENSURE, PA_UNLESS, paDeviceUnavailable, paNoError, and PaAlsaStreamComponent::pcm.
Get the ALSA-lib card index of this stream's output device.
References PA_ENSURE, PA_UNLESS, paDeviceUnavailable, paNoError, PaAlsaStreamComponent::pcm, and PaAlsaStream::playback.
void PaAlsa_InitializeStreamInfo | ( | PaAlsaStreamInfo * | info | ) |
Initialize host API specific structure, call this before setting relevant attributes.
References PaAlsaStreamInfo::deviceString, PaAlsaStreamInfo::hostApiType, paALSA, PaAlsaStreamInfo::size, and PaAlsaStreamInfo::version.
PaError PaAlsa_SetNumPeriods | ( | int | numPeriods | ) |
Set the number of periods (buffer fragments) to configure devices with.
By default the number of periods is 4, this is the lowest number of periods that works well on the author's soundcard.
numPeriods | The number of periods. |
References paNoError.