\code
#include "RtAudio.h"
#include <iostream>
+#include <cstdlib>
// Two-channel sawtooth wave generator.
int saw( void *outputBuffer, void *inputBuffer, unsigned int nBufferFrames,
sampleRate, &bufferFrames, &saw, (void *)&data );
dac.startStream();
}
- catch ( RtError& e ) {
+ catch ( RtAudioError& e ) {
e.printMessage();
exit( 0 );
}
// Stop the stream
dac.stopStream();
}
- catch (RtError& e) {
+ catch (RtAudioError& e) {
e.printMessage();
}