You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm trying to move from RtAudio 5 to 6 and I can't figure out how to use the constructor with RtAudioErrorCallback.
RtAudio( RtAudio::Api api=UNSPECIFIED, RtAudioErrorCallback&& errorCallback=0 );
In RtAudio 5, I have
RtAudio * p = new RtAudio(RtAudio::WINDOWS_ASIO);
catch (RtAudioError &error) {
// report error here
}
but in RtAudio 6 I keep getting compile errors trying to do something like
RtAudioErrorCallback errorCallback;
RtAudio * p = new RtAudio(RtAudio::MACOSX_CORE, errorCallback);
What should the code look like to use RtAudioErrorCallback?
Thanks,
Michael
The text was updated successfully, but these errors were encountered:
mjsmithers
changed the title
Please provide example for using RtAudioErrorCallback in constructor
Could someone provide an example for using RtAudioErrorCallback in constructor?
Oct 19, 2023
I'm trying to move from RtAudio 5 to 6 and I can't figure out how to use the constructor with RtAudioErrorCallback.
RtAudio( RtAudio::Api api=UNSPECIFIED, RtAudioErrorCallback&& errorCallback=0 );
In RtAudio 5, I have
RtAudio * p = new RtAudio(RtAudio::WINDOWS_ASIO);
catch (RtAudioError &error) {
// report error here
}
but in RtAudio 6 I keep getting compile errors trying to do something like
RtAudioErrorCallback errorCallback;
RtAudio * p = new RtAudio(RtAudio::MACOSX_CORE, errorCallback);
What should the code look like to use RtAudioErrorCallback?
Thanks,
Michael
The text was updated successfully, but these errors were encountered: