Renamed RtError class to RtAudioError and embedded it in RtAudio.h.
[rtaudio-cdist.git] / doc / doxygen / playback.txt
index 4d5a793be4e50b8755427f133ab8f30fd862e804..cf182a69662f47c18f86cf7bbe27c183a302f116 100644 (file)
@@ -5,6 +5,7 @@ In this example, we provide a complete program that demonstrates the use of RtAu
 \code
 #include "RtAudio.h"
 #include <iostream>
+#include <cstdlib>
 
 // Two-channel sawtooth wave generator.
 int saw( void *outputBuffer, void *inputBuffer, unsigned int nBufferFrames,
@@ -51,7 +52,7 @@ int main()
                     sampleRate, &bufferFrames, &saw, (void *)&data );
     dac.startStream();
   }
-  catch ( RtError& e ) {
+  catch ( RtAudioError& e ) {
     e.printMessage();
     exit( 0 );
   }
@@ -64,7 +65,7 @@ int main()
     // Stop the stream
     dac.stopStream();
   }
-  catch (RtError& e) {
+  catch (RtAudioError& e) {
     e.printMessage();
   }