41 #include "EST_audio.h"
42 #include "EST_cmd_line_options.h"
124 int main (
int argc,
char *argv[])
134 EST_String(
"[input file0] [input file1] ...\n")+
135 "Summary; play waveform files on audio device\n"+
136 "use \"-\" to make input and output files stdin/out\n"+
138 options_wave_input()+
139 "-p <string> audio device protocol. Ths supported types are\n"
140 " "+options_supported_audio()+
"\n"
141 "-command <string> command to play wave when protocol\n"+
142 " is audio_command\n"
143 "-basic HTML audio/basic format, if unheadered treat\n"
145 "-r* ESPS compatible way of selecting subrange of file.\n"
146 " The options -start, -end, -to and -from are \n"
148 "-quality <string> either [ high | low ]. \"high\" will ensure \n"
149 " that proper resampling is used. \"low\" means play \n"
150 " as fast as possible, with a minimum of processing\n\n"
151 "-server <string> play sound on machine (when protocol is\n"
153 "-audiodevice <string> use specified audiodevice if approrpriate\n"
155 "-scale <float> change the gain (volume) of the signal. 1.0 is default\n"
156 "-v verbose. Print file names when playing\n"
157 "-wait wait for a key to be pressed between each file\n",
165 for (p = files.head(); p; )
168 cout <<
"playing " << files(p) << endl;
170 if (read_wave(sig, files(p), al) != format_ok)
177 wave_extract_channel(tmp,sig,al.
ival(
"-c"));
194 play_wave(*toplay, al);
197 if (al.
present(
"-wait") && p->next())
199 if (getc(stdin) ==
'a')
217 if (al.
val(
"-L", 0) ==
"true")
219 if (al.
val(
"-R", 0) ==
"true")