Skip to content

Commit

Permalink
temp fix to CreateJS/SoundJS#297
Browse files Browse the repository at this point in the history
  • Loading branch information
hypersurge committed May 29, 2018
1 parent a1d28bf commit fdef281
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions lib/awe6/core/drivers/createjs/AudioManager.hx
Original file line number Diff line number Diff line change
Expand Up @@ -123,6 +123,12 @@ class _HelperSound extends _AHelperSound
try
{
_sound = Sound.play( "assets.audio." + id, 0, _startTime, _loops, _volume, _pan );
// temporary fix to Chrome sound issue
// https://github.com/CreateJS/SoundJS/issues/297
if ( untyped createjs.WebAudioPlugin.context && ( untyped createjs.WebAudioPlugin.context.state == "suspended" ) )
{
untyped createjs.WebAudioPlugin.context.resume();
}
}
catch ( p_error:Dynamic ) {}
if ( _sound == null )
Expand Down

0 comments on commit fdef281

Please sign in to comment.