thestk / rtaudio

A set of C++ classes that provide a common API for realtime audio input/output across Linux (native ALSA, JACK, PulseAudio and OSS), Macintosh OS X (CoreAudio and JACK), and Windows (DirectSound, ASIO, and WASAPI) operating systems.
Other
1.49k stars 318 forks source link

RtAudioError no more exists in RtAudio.h #346

Closed shemeshg closed 2 years ago

shemeshg commented 2 years ago

Hi

In the the tutorial https://www.music.mcgill.ca/~gary/rtaudio/playback.html We are instructed to use

catch ( RtAudioError& e ) {
    e.printMessage();
    exit( 0 );
  }

However the https://github.com/thestk/rtaudio/blob/master/RtAudio.h does not contain the class https://www.music.mcgill.ca/~gary/rtaudio/classRtAudioError.html On the other hand it does exists in this documentation link... https://www.music.mcgill.ca/~gary/rtaudio/RtAudio_8h_source.html

jontio commented 2 years ago

It seems Gary is removing the exception behavior if you look through the commits. At the moment for the tutorials to make sense you will have to checkout one of the releases that uses the exception behavior. git tag shows the releases. I think release 5.2.0 might end up being the last release with the exception behavior. So...

git clone https://github.com/thestk/rtaudio.git
cd rtaudio
git checkout 5.2.0

Is probably what you want while the documentation seems to be for 5.2.0.

garyscavone commented 2 years ago

Updated in latest merge.