41 #include "EST_cutils.h"
43 #include "EST_Option.h"
45 #include "EST_Pathname.h"
47 #ifdef SUPPORT_MPLAYER
49 int mplayer_supported = TRUE;
55 static void find_tempfile(
void)
59 if (!(s=getenv(
"TMP")))
60 if (!(s=getenv(
"TMPDIR")))
61 if (!(s=getenv(
"TEMPDIR")))
67 sprintf(buffer,
"est%4d.wav", getpid());
69 temppath = EST_Pathname::append(tempdir.as_directory(), tempfile);
78 inwave.
save(temppath,
"riff");
83 "mplayer /play %s\\%s",
84 (
const char *)tempdir,
85 (
const char *)tempfile);
87 cout <<
"command '" << command <<
"'\n";
96 int mplayer_supported = FALSE;
102 cerr <<
"Windows mplayer not supported" << endl;
A class for storing digital waveforms. The waveform is stored as an array of 16 bit shorts...
Utility IO Function header file.
EST_write_status save(const EST_String filename, const EST_String EST_filetype="")