Skip to content

Commit

Permalink
⚗ Try fix Windows tests
Browse files Browse the repository at this point in the history
  • Loading branch information
JulesFouchy committed Nov 13, 2024
1 parent 635b2b8 commit 838554b
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions src/Player.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -12,18 +12,18 @@ static auto backend() -> RtAudio&
}

#ifndef NDEBUG // Only used by the assert, so unused in Release, which would cause a warning.
static auto is_API_available() -> bool
{
std::vector<RtAudio::Api> apis;
RtAudio::getCompiledApi(apis);
return apis[0] != RtAudio::Api::RTAUDIO_DUMMY;
}
// static auto is_API_available() -> bool
// {
// std::vector<RtAudio::Api> apis;
// RtAudio::getCompiledApi(apis);
// return apis[0] != RtAudio::Api::RTAUDIO_DUMMY;
// }
#endif

Player::Player()
{
backend().showWarnings(false);
assert(is_API_available());
// assert(is_API_available());
update_device_if_necessary();
}

Expand Down

0 comments on commit 838554b

Please sign in to comment.