From 4bae2267f8a7a55c06d0fe2fa63a9142ba326d15 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 6c0c3af..e00fd19 100644 --- a/src/cubeb_aaudio.cpp +++ b/src/cubeb_aaudio.cpp @@ -1109,8 +1109,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; } @@ -1119,8 +1118,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; }