Added the flag "force_html5_audio" for howler

Added a compilation flag `force_html5_audio` to force howler to always use html5 audio.

I don't think anyone will find this useful but it shouldn't do any harm to have.
This commit is contained in:
Milton Candelero
2019-04-01 09:47:32 -03:00
committed by Joshua Granick
parent 28e1056885
commit 1d2abf7d2e

View File

@@ -151,7 +151,13 @@ class AudioBuffer
#if (js && html5 && lime_howlerjs)
var audioBuffer = new AudioBuffer();
#if force_html5_audio
audioBuffer.__srcHowl = new Howl({src: [path], html5: true, preload: false});
#else
audioBuffer.__srcHowl = new Howl({src: [path], preload: false});
#end
return audioBuffer;
#elseif flash
switch (Path.extension(path))
@@ -194,7 +200,13 @@ class AudioBuffer
{
#if (js && html5 && lime_howlerjs)
var audioBuffer = new AudioBuffer();
#if force_html5_audio
audioBuffer.__srcHowl = new Howl({src: paths, html5: true, preload: false});
#else
audioBuffer.__srcHowl = new Howl({src: paths, preload: false});
#end
return audioBuffer;
#else
var buffer = null;