Merge branch 'ct' of git.pipapo.org:cinelerra-ct into ct
[cinelerra_cv/ct.git] / cinelerra / audioesound.h
blob465b72496eb2a77808becc3fb7efdd95a3459581
1 #ifndef AUDIOESOUND_H
2 #define AUDIOESOUND_H
4 #include "audiodevice.inc"
6 #ifdef HAVE_ESOUND
8 class AudioESound : public AudioLowLevel
10 public:
11 AudioESound(AudioDevice *device);
12 ~AudioESound();
14 int open_input();
15 int open_output();
16 int open_duplex();
17 int write_buffer(char *buffer, int size);
18 int read_buffer(char *buffer, int size);
19 int close_all();
20 int64_t device_position();
21 int flush_device();
22 int interrupt_playback();
24 private:
25 int get_bit_flag(int bits);
26 int get_channels_flag(int channels);
27 char* translate_device_string(char *server, int port);
28 int esd_in, esd_out, esd_duplex;
29 int esd_in_fd, esd_out_fd, esd_duplex_fd;
30 char device_string[1024];
33 #endif
34 #endif
36 // Local Variables:
37 // mode: C++
38 // c-file-style: "linux"
39 // End: