5 #include "audiodevice.h"
10 class AudioALSA
: public AudioLowLevel
13 AudioALSA(AudioDevice
*device
);
16 static void list_devices(ArrayList
<char*> *devices
, int pcm_title
= 0);
20 int write_buffer(char *buffer
, int size
);
21 int read_buffer(char *buffer
, int size
);
24 int64_t device_position();
26 int interrupt_playback();
30 void translate_name(char *output
, char *input
);
31 snd_pcm_format_t
translate_format(int format
);
32 void set_params(snd_pcm_t
*dsp
,
37 int create_format(snd_pcm_format_t
*format
, int bits
, int channels
, int rate
);
38 snd_pcm_t
* get_output();
39 snd_pcm_t
* get_input();
40 snd_pcm_t
*dsp_in
, *dsp_out
, *dsp_duplex
;
41 int64_t samples_written
;