Don't print cubeb result codes as if they're from AAudio
Some checks failed
Build / build (macos-13, Debug) (push) Has been cancelled
Build / build (macos-13, Release) (push) Has been cancelled
Build / build (macos-14, Debug) (push) Has been cancelled
Build / build (macos-14, Release) (push) Has been cancelled
Build / build (ubuntu-20.04, Debug) (push) Has been cancelled
Build / build (ubuntu-20.04, Release) (push) Has been cancelled
Build / build (windows-2019, Debug) (push) Has been cancelled
Build / build (windows-2019, Release) (push) Has been cancelled
Build / build-android (arm64-v8a, Debug) (push) Has been cancelled
Build / build-android (arm64-v8a, Release) (push) Has been cancelled
Build / build-android (armeabi-v7a, Debug) (push) Has been cancelled
Build / build-android (armeabi-v7a, Release) (push) Has been cancelled
Build / build-android (x86_64, Debug) (push) Has been cancelled
Build / build-android (x86_64, Release) (push) Has been cancelled
Build / check_format (push) Has been cancelled

This commit is contained in:
Andreas Pehrson 2024-06-18 10:40:41 +02:00
parent 4f72bb725e
commit 4bae2267f8

View file

@ -1109,8 +1109,7 @@ reinitialize_stream_locked(cubeb_stream * stm, lock_guard<mutex> & lock)
if (err != CUBEB_OK) {
aaudio_stream_destroy_locked(stm, lock);
LOG("aaudio_stream_init_impl error while reiniting: %s",
WRAP(AAudio_convertResultToText)(err));
LOG("aaudio_stream_init_impl error while reiniting");
stm->state.store(stream_state::ERROR);
return err;
}
@ -1119,8 +1118,7 @@ reinitialize_stream_locked(cubeb_stream * stm, lock_guard<mutex> & lock)
err = aaudio_stream_start_locked(stm, lock);
if (err != CUBEB_OK) {
aaudio_stream_destroy_locked(stm, lock);
LOG("aaudio_stream_start error while reiniting: %s",
WRAP(AAudio_convertResultToText)(err));
LOG("aaudio_stream_start error while reiniting");
stm->state.store(stream_state::ERROR);
return err;
}