Skip to content

Commit

Permalink
pixi driver sound start convert ms to seconds
Browse files Browse the repository at this point in the history
  • Loading branch information
hypersurge committed Oct 11, 2018
1 parent 7919e33 commit b86ad1c
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions lib/awe6/core/drivers/pixijs/AudioManager.hx
Original file line number Diff line number Diff line change
Expand Up @@ -33,15 +33,15 @@ import awe6.interfaces.EAudioChannel;
import awe6.interfaces.IKernel;
import js.Browser;
import js.html.Event;
typedef SoundOptions = {
typedef PlayOptions = {
?complete:Void->Void,
?start:Int,
?start:Float,
?end:Int,
?speed:Float,
?loop:Bool,
};
typedef Sound = {
play:String->?SoundOptions->SoundInstance,
play:String->?PlayOptions->SoundInstance,
find:String->SoundInstance,
volumeAll: Float,
muteAll: Void->Void,
Expand All @@ -50,7 +50,7 @@ typedef Sound = {
useLegacy:Bool,
};
typedef SoundInstance = {
play:?SoundOptions->Void,
play:?PlayOptions->Void,
stop:Void->Void,
volume:Float,
loop:Bool,
Expand Down Expand Up @@ -150,9 +150,9 @@ class _HelperSound extends _AHelperSound
try
{
_sound = AudioManager.sound.find( "assets.audio." + id );
var l_options:SoundOptions = {
var l_options:PlayOptions = {
complete:_onSoundComplete,
start: _startTime,
start: _startTime / 1000,
loop: _loops != 0,
};
_sound.volume = _volume;
Expand Down

0 comments on commit b86ad1c

Please sign in to comment.