47 #include "EST_Option.h"
49 #include "EST_io_aux.h"
65 #define au_serverrate 16000
67 bool esd_supported = TRUE;
69 static int endian_int = 1;
70 #define ESD_BIG_ENDIAN (((char *)&endian_int)[0] == 0)
81 server = display.
before(
":");
101 case 1: format=ESD_MONO;
104 case 2: format=ESD_STEREO;
108 cerr <<
"EST: " << inwave.
num_channels() <<
" channel data not supported\n";
112 format |= ESD_BITS16 | ESD_STREAM | ESD_PLAY;
116 int esd = esd_play_stream( format, sample_rate,
121 const char *data = (
const char *)(inwave.values().
memory());
123 while(n > 0 && (nw = write(esd, data+tot, n)) >0)
131 cerr <<
"ESD: error writing - " << strerror(errno) <<
"\n";
144 cerr <<
"ESD: record not written yet\n";
149 int esd_supported = FALSE;
155 cerr <<
"ESD playback not supported" << endl;
164 cerr <<
"ESD record not supported" << endl;