Skip to content

Commit cdf298c

Browse files
authored
fix background audio position lost (goldfire#2)
* potentialfix * bump package * build
1 parent b80d680 commit cdf298c

File tree

7 files changed

+14
-10
lines changed

7 files changed

+14
-10
lines changed

dist/howler.core.min.js

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/howler.js

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*!
2-
* howler.js v2.2.5
2+
* howler.js v2.2.6
33
* howlerjs.com
44
*
55
* (c) 2013-2020, James Simpson of GoldFire Studios
@@ -359,7 +359,9 @@
359359

360360
if (sound && sound._node && !sound._node._unlocked) {
361361
sound._node._unlocked = true;
362+
var currentTime = sound._node.currentTime;
362363
sound._node.load();
364+
sound._node.currentTime = currentTime;
363365
}
364366
}
365367
}
@@ -2620,7 +2622,7 @@
26202622
/*!
26212623
* Spatial Plugin - Adds support for stereo and 3D audio where Web Audio is supported.
26222624
*
2623-
* howler.js v2.2.5
2625+
* howler.js v2.2.6
26242626
* howlerjs.com
26252627
*
26262628
* (c) 2013-2020, James Simpson of GoldFire Studios

dist/howler.min.js

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/howler.spatial.min.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@catalogworks/howler",
3-
"version": "2.2.5",
3+
"version": "2.2.6",
44
"description": "Javascript audio library for the modern web.",
55
"homepage": "https://howlerjs.com",
66
"keywords": [

src/howler.core.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*!
2-
* howler.js v2.2.5
2+
* howler.js v2.2.6
33
* howlerjs.com
44
*
55
* (c) 2013-2020, James Simpson of GoldFire Studios
@@ -359,7 +359,9 @@
359359

360360
if (sound && sound._node && !sound._node._unlocked) {
361361
sound._node._unlocked = true;
362+
var currentTime = sound._node.currentTime;
362363
sound._node.load();
364+
sound._node.currentTime = currentTime;
363365
}
364366
}
365367
}

src/plugins/howler.spatial.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/*!
22
* Spatial Plugin - Adds support for stereo and 3D audio where Web Audio is supported.
33
*
4-
* howler.js v2.2.5
4+
* howler.js v2.2.6
55
* howlerjs.com
66
*
77
* (c) 2013-2020, James Simpson of GoldFire Studios

0 commit comments

Comments
 (0)