Skip to content

Commit fd4bc2b

Browse files
committed
make linter happy
1 parent 4ce2c20 commit fd4bc2b

2 files changed

Lines changed: 4 additions & 2 deletions

File tree

src/SoundPlayer.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -255,6 +255,7 @@ class SoundPlayer extends EventEmitter {
255255
*
256256
* If the sound is already playing it will stop playback with a quick fade
257257
* out.
258+
* @param {number} startSeconds - start position of sound.
258259
*/
259260
play (startSeconds) {
260261
if (this.isStarting) {
@@ -273,7 +274,7 @@ class SoundPlayer extends EventEmitter {
273274
this.initialize();
274275
}
275276

276-
if (typeof startSeconds === "number") {
277+
if (typeof startSeconds === 'number') {
277278
this.outputNode.start(0, startSeconds);
278279
} else {
279280
this.outputNode.start();

src/effects/VolumeEffect.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,14 +37,15 @@ class VolumeEffect extends Effect {
3737
* Set the effects value.
3838
* @private
3939
* @param {number} value - new value to set effect to
40+
* @param {number} additionalDecay - control strength of decay
4041
*/
4142
_set (value, additionalDecay) {
4243
this.value = value;
4344

4445
const {gain} = this.outputNode;
4546
const {currentTime, DECAY_DURATION} = this.audioEngine;
4647

47-
if (typeof additionalDecay === "number") {
48+
if (typeof additionalDecay === 'number') {
4849
gain.linearRampToValueAtTime(value / 100, currentTime + (DECAY_DURATION + additionalDecay));
4950
return;
5051
}

0 commit comments

Comments
 (0)