r969: Render format selector: Do not change the path name when the format is changed.
[cinelerra_cv/ct.git] / cinelerra / audioesound.h
blobf30389f936ec35474f2b048bdf6e39e05b494510
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