5 #include "audiodevice.h"
8 #include <alsa/asoundlib.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
);
23 int64_t device_position();
25 int interrupt_playback();
28 void translate_name(char *output
, char *input
);
29 snd_pcm_format_t
translate_format(int format
);
30 void set_params(snd_pcm_t
*dsp
,
35 int create_format(snd_pcm_format_t
*format
, int bits
, int channels
, int rate
);
36 snd_pcm_t
* get_output();
37 snd_pcm_t
* get_input();
38 snd_pcm_t
*dsp_in
, *dsp_out
, *dsp_duplex
;