Skip to content

Commit

Permalink
Merge branch 'test_audio' into test_edit
Browse files Browse the repository at this point in the history
  • Loading branch information
ggarra13 committed Sep 25, 2023
2 parents b878b80 + 11b8336 commit b6d8ac8
Showing 1 changed file with 15 additions and 1 deletion.
16 changes: 15 additions & 1 deletion lib/tlTimeline/Player.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,21 @@ namespace tl
p.mutex.cacheInfo = p.cacheInfo->get();
p.audioMutex.speed = p.speed->get();
#if defined(TLRENDER_AUDIO)
p.thread.rtAudio.reset(new RtAudio);
try
{
p.thread.rtAudio.reset(new RtAudio);
}
catch (const std::exception& e)
{
std::stringstream ss;
ss << "Cannot open create RtAudio instance: " << e.what();
context->log("tl::timeline::Player", ss.str(), log::Type::Error);
}
if (!p.thread.rtAudio)
{
p.thread.running = false;
return;
}
#endif
p.thread.running = true;
p.thread.thread = std::thread(
Expand Down

0 comments on commit b6d8ac8

Please sign in to comment.