From d098fb51c2ecf602bedaf815283545fc12bab222 Mon Sep 17 00:00:00 2001 From: Andreas Pehrson Date: Tue, 18 Jun 2024 10:40:41 +0200 Subject: [PATCH] Don't print cubeb result codes as if they're from AAudio --- src/cubeb_aaudio.cpp | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/cubeb_aaudio.cpp b/src/cubeb_aaudio.cpp index 923708a..fef3169 100644 --- a/src/cubeb_aaudio.cpp +++ b/src/cubeb_aaudio.cpp @@ -909,8 +909,7 @@ reinitialize_stream_locked(cubeb_stream * stm, lock_guard & 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; } @@ -919,8 +918,7 @@ reinitialize_stream_locked(cubeb_stream * stm, lock_guard & 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; }