Skip to content

Commit

Permalink
Don't print cubeb result codes as if they're from AAudio
Browse files Browse the repository at this point in the history
  • Loading branch information
Pehrsons committed Jul 1, 2024
1 parent dac61f8 commit 5e11613
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/cubeb_aaudio.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -912,8 +912,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;
}
Expand All @@ -922,8 +921,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;
}
Expand Down

0 comments on commit 5e11613

Please sign in to comment.