diff options
| author | Gary Scavone <gary.scavone@mcgill.ca> | 2022-01-03 22:27:40 -0500 |
|---|---|---|
| committer | Gary Scavone <gary.scavone@mcgill.ca> | 2022-01-03 22:27:40 -0500 |
| commit | 9e2b1de8c469ae89063aaeefbb72bac9253a1acc (patch) | |
| tree | 5be18eee0ec4a7c27f462130571b1a4710fe9b85 /RtAudio.cpp | |
| parent | 3601e5f0c0256c1a088a8b958b7906f7effea942 (diff) | |
Asio bug fixes in RtAudio.cpp (untested).
Diffstat (limited to 'RtAudio.cpp')
| -rw-r--r-- | RtAudio.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/RtAudio.cpp b/RtAudio.cpp index dfcb945..2e2173b 100644 --- a/RtAudio.cpp +++ b/RtAudio.cpp @@ -3087,7 +3087,7 @@ void RtApiAsio :: probeDevices( void ) getDefaultOutputDevice(); } -RtAudio::DeviceInfo RtApiAsio :: probeDeviceInfo( RtAudio::DeviceInfo &info ) +bool RtApiAsio :: probeDeviceInfo( RtAudio::DeviceInfo &info ) { if ( !drivers.loadDriver( info.name ) ) { errorStream_ << "RtApiAsio::probeDeviceInfo: unable to load driver (" << info.name << ")."; @@ -3195,8 +3195,9 @@ bool RtApiAsio :: probeDeviceOpen( unsigned int deviceId, StreamMode mode, unsig } // Only load the driver once for duplex stream. + ASIOError result; if ( !isDuplexInput ) { - if ( !drivers.loadDriver( driverName.c_str() ) ) { + if ( !drivers.loadDriver( driverName ) ) { errorStream_ << "RtApiAsio::probeDeviceOpen: unable to load driver (" << driverName << ")."; errorText_ = errorStream_.str(); return FAILURE; |
