~ubuntu-branches/ubuntu/gutsy/audacity/gutsy-backports

« back to all changes in this revision

Viewing changes to lib-src/portaudio-v19/include/pa_linux_alsa.h

  • Committer: Bazaar Package Importer
  • Author(s): John Dong
  • Date: 2008-02-18 21:58:19 UTC
  • mfrom: (13.1.2 hardy)
  • Revision ID: james.westby@ubuntu.com-20080218215819-tmbcf1rx238r8gdv
Tags: 1.3.4-1.1ubuntu1~gutsy1
Automated backport upload; no source changes.

Show diffs side-by-side

added added

removed removed

Lines of Context:
2
2
#define PA_LINUX_ALSA_H
3
3
 
4
4
/*
5
 
 * $Id: pa_linux_alsa.h,v 1.3 2006/10/02 00:29:02 llucius Exp $
 
5
 * $Id: pa_linux_alsa.h,v 1.6 2007/08/16 20:45:34 richardash1981 Exp $
6
6
 * PortAudio Portable Real-Time Audio Library
7
7
 * ALSA-specific extensions
8
8
 *
42
42
/** @file
43
43
 * ALSA-specific PortAudio API extension header file.
44
44
 */
 
45
#include "portaudio.h"
45
46
 
46
47
#ifdef __cplusplus
47
48
extern "C" {
57
58
}
58
59
PaAlsaStreamInfo;
59
60
 
 
61
/** Initialize host API specific structure, call this before setting relevant attributes. */
60
62
void PaAlsa_InitializeStreamInfo( PaAlsaStreamInfo *info );
61
63
 
 
64
/** Instruct whether to enable real-time priority when starting the audio thread.
 
65
 *
 
66
 * If this is turned on by the stream is started, the audio callback thread will be created
 
67
 * with the FIFO scheduling policy, which is suitable for realtime operation.
 
68
 **/
62
69
void PaAlsa_EnableRealtimeScheduling( PaStream *s, int enable );
63
70
 
 
71
#if 0
64
72
void PaAlsa_EnableWatchdog( PaStream *s, int enable );
65
 
 
66
 
int PaAlsa_GetInputCard( PaStream *s );
67
 
 
68
 
int PaAlsa_GetOutputCard( PaStream *s );
 
73
#endif
 
74
 
 
75
/** Get the ALSA-lib card index of this stream's input device. */
 
76
PaError PaAlsa_GetStreamInputCard( PaStream *s, int *card );
 
77
 
 
78
/** Get the ALSA-lib card index of this stream's output device. */
 
79
PaError PaAlsa_GetStreamOutputCard( PaStream *s, int *card );
 
80
 
 
81
/** Set the number of periods (buffer fragments) to configure devices with.
 
82
 *
 
83
 * By default the number of periods is 4, this is the lowest number of periods that works well on
 
84
 * the author's soundcard.
 
85
 * @param numPeriods The number of periods.
 
86
 */
 
87
PaError PaAlsa_SetNumPeriods( int numPeriods );
69
88
 
70
89
#ifdef __cplusplus
71
90
}