15 using namespace Nsound;
45 pac_man >>
"example1.wav";
56 cerr <<
"Could not play audio: " << e.
what() << endl;
const char * what() const
virtual float64 generate(const float64 &frequency)
This is a real-time method for the wavetable oscillator.
void normalize()
Multiplies the Buffer by a constant gain so the peak sample has magnitude 1.0.
A Buffer for storing audio samples.
Buffer drawLine(const float64 &duration, const float64 &litude_start, const float64 &litude_finish) const
This method draws a linear line beteween 2 points.