Julius 4.2
データ構造 | 関数
msvc/portaudio/pa_linux_alsa.h

ALSA-specific PortAudio API extension header file. [詳細]

#include "portaudio.h"

ソースコードを見る。

データ構造

struct  PaAlsaStreamInfo

関数

void PaAlsa_InitializeStreamInfo (PaAlsaStreamInfo *info)
 Initialize host API specific structure, call this before setting relevant attributes.
void PaAlsa_EnableRealtimeScheduling (PaStream *s, int enable)
 Instruct whether to enable real-time priority when starting the audio thread.
PaError PaAlsa_GetStreamInputCard (PaStream *s, int *card)
 Get the ALSA-lib card index of this stream's input device.
PaError PaAlsa_GetStreamOutputCard (PaStream *s, int *card)
 Get the ALSA-lib card index of this stream's output device.
PaError PaAlsa_SetNumPeriods (int numPeriods)
 Set the number of periods (buffer fragments) to configure devices with.

説明

ALSA-specific PortAudio API extension header file.

pa_linux_alsa.h で定義されています。


関数

void PaAlsa_InitializeStreamInfo ( PaAlsaStreamInfo info)

Initialize host API specific structure, call this before setting relevant attributes.

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.

PaError PaAlsa_GetStreamInputCard ( PaStream s,
int *  card 
)

Get the ALSA-lib card index of this stream's input device.

PaError PaAlsa_GetStreamOutputCard ( PaStream s,
int *  card 
)

Get the ALSA-lib card index of this stream's output device.

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.

引数:
numPeriodsThe number of periods.