Open mikedotalmond opened 10 years ago
Ah, I see I didn't update Mixer. Will fix.
Hmm, I see why those js.html.audio externs were left out... revert....
Build appears to have failed on a firefox.js test - timed out after 10 mins. Not sure why. https://travis-ci.org/aduros/flambe/jobs/32797267
Adds ability to play or loop regions of a sound, with optional offset and duration parameters.
play (volume :Float = 1.0, offset:Float=0, duration:Float=0) :Playback
loop (volume :Float = 1.0, offset:Float=0, duration:Float=0) :Playback
This will allow sound-sprite type behaviours - where many short sounds can be contained in, and played from, a single asset.
The update should be seamless across all platforms - and not break anything.. but I have changed how Playback objects are disposed:
AudioBufferSourceNode -> GainNode
pairs that were not being removed/collected.AudioNode::connect
andAudioNode::disconnect
which are out of date in the haxe std library. The output and input parameters for these functions are optional so should be more like this...@:overload( function( destination : AudioNode, ?output : Int, ?input : Int ) :Void {} )
function connect( destination : AudioParam, ?output : Int ) : Void;
function disconnect( ?output : Int ) : Void;