https://redmine.graphics-muse.org/https://redmine.graphics-muse.org/favicon.ico?16278048512018-09-01T22:26:32ZGraphics Muse Issue TrackerJarvis - Bug #671: Multiple audio streams are not played synchronouslyhttps://redmine.graphics-muse.org/issues/671?journal_id=23412018-09-01T22:26:32ZHammelmjhammel@graphics-muse.org
<ul><li><strong>Status</strong> changed from <i>New</i> to <i>Closed</i></li><li><strong>% Done</strong> changed from <i>0</i> to <i>100</i></li></ul><p>The Java Sound API sucks on Linux and doesn't do what you'd expect. But a workaround to get synchronously played audio clips is to get the length of the clip, using the sun.audio.* API to play it and then wait the clip length * 2 for it to complete. It's a hack but seems to work for my case at the moment.</p>
<p>This code is committed and pushed - and tested with "Jarvis office lights" voice command, which returns three phrases: how many matching devices found, how many are enabled and how many are disabled.</p>
<p>Closing issue.</p>