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 4, 2024
1 parent 862c831 commit 2bbcbd6
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 @@ -1008,8 +1008,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 @@ -1018,8 +1017,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 2bbcbd6

Please sign in to comment.