made it compile with RtAudio-4.1.1
authorDebian Multimedia Maintainers <debian-multimedia@lists.debian.org>
Mon, 2 Sep 2019 11:35:55 +0000 (13:35 +0200)
committerIOhannes m zmölnig (Debian/GNU) <umlaeute@debian.org>
Mon, 2 Sep 2019 11:35:55 +0000 (13:35 +0200)
Origin: https://github.com/jcacerec/jacktrip/commit/83fbb337
Applied-Upstream: 83fbb337266e4ba17828db746955a2b83ae0248d
Reviewed-by: IOhannes m zmölnig
Last-Update: 2015-06-28

RtAudio has changed the exception class from RtError to RtAudioError
Last-Update: 2015-06-28
Gbp-Pq: Name rtaudio411.patch

src/RtAudioInterface.cpp

index 3add7623686348b474c9af9e066665927b808eef..a08c8a7519c282242de4d96665b3b32b81f1e155 100644 (file)
@@ -123,7 +123,7 @@ void RtAudioInterface::setup()
                          sampleRate, &bufferFrames,
                          &RtAudioInterface::wrapperRtAudioCallback, this, &options);
   }
-  catch ( RtError& e ) {
+  catch ( RtAudioError& e ) {
     std::cout << '\n' << e.getMessage() << '\n' << std::endl;
     exit( 0 );
   }
@@ -213,7 +213,7 @@ int RtAudioInterface::wrapperRtAudioCallback(void *outputBuffer, void *inputBuff
 int RtAudioInterface::startProcess() const
 {
   try { mRtAudio->startStream(); }
-  catch ( RtError& e ) {
+  catch ( RtAudioError& e ) {
     std::cout << '\n' << e.getMessage() << '\n' << std::endl;
     return(-1);
   }
@@ -225,7 +225,7 @@ int RtAudioInterface::startProcess() const
 int RtAudioInterface::stopProcess() const
 {
   try { mRtAudio->closeStream(); }
-  catch ( RtError& e ) {
+  catch ( RtAudioError& e ) {
     std::cout << '\n' << e.getMessage() << '\n' << std::endl;
     return(-1);
   }