Correct multiple howler.js playback (resolve openfl/openfl#1368)
This commit is contained in:
@@ -24,6 +24,7 @@ class HTML5AudioSource {
|
||||
|
||||
this.parent = parent;
|
||||
|
||||
id = -1;
|
||||
gain = 1;
|
||||
position = new Vector4 ();
|
||||
|
||||
@@ -147,6 +148,12 @@ class HTML5AudioSource {
|
||||
|
||||
public function getCurrentTime ():Int {
|
||||
|
||||
if (id == -1) {
|
||||
|
||||
return 0;
|
||||
|
||||
}
|
||||
|
||||
#if howlerjs
|
||||
|
||||
if (completed) {
|
||||
|
||||
Reference in New Issue
Block a user