10 using namespace Nsound;
40 out >>
"example4.wav";
46 out2 >>
"example4_reverb.wav";
58 cerr <<
"Could not play audio: " << e.
what() << endl;
AudioStream play()
Plays a demo for this instrument.
AudioStream filter(const AudioStream &x)
Buffer silence(const float64 &duration) const
This method generates silence.
const char * what() const
static void setDefaults(const float64 &sample_rate=44100.0, const float64 &sample_bits=16.0, const boolean &use_ieee_floats=false)
AudioStream play()
Plays a demo for this instrument.
AudioStream play()
Plays a demo for this instrument.