22 #if defined (SUPPORT_IRIX) || defined (SUPPORT_IRIX53) 42 config = ALnewconfig();
43 ALsetsampfmt(config, AL_SAMPFMT_TWOSCOMP);
44 ALsetwidth(config, AL_SAMPLE_16);
45 ALsetchannels(config, AL_MONO);
48 pvbuf[0] = AL_OUTPUT_RATE;
49 pvbuf[1] = sample_rate;
50 ALsetparams(AL_DEFAULT_DEVICE, pvbuf, 2);
61 port = ALopenport(
"speech-tools",
"w", config);
64 cerr <<
"IRIX: can't open audio port" << endl;
69 r = ALwritesamps(port, waveform, num_samples);
71 cerr <<
"IRIX: failed to write to buffer" << endl;
76 while (ALgetfilled(port)) sginap(1);
78 while (ALgetfilled(port)) usleep(10000);
94 cerr <<
"IRIX 16bit linear 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.
ssize_t num_samples() const
return the number of samples in the waveform
const EST_SMatrix & values() const
int play_irix_wave(EST_Wave &inwave, EST_Option &al)
int sample_rate() const
return the sampling rate (frequency)