When harvesting, logic equivalent to the reduced repro is invoked.
After loading the game or after waiting a minute, the next harvest results in play() being invoked as above. The speaker on my laptop clicks. This suggests to me the speaker is being awoken even though howler is set to muted. In addition to being annoying, this is a waste of battery power.
When muted, howler shouldn't wake up the audio hardware at all.
Reproducible Example
No response
Reproduction Steps
Repro reduced from Sunflower Land:
import { Howler } from "howler";
import harvestMp3 from "assets/sound-effects/harvest.mp3";
export const harvestAudio = new Howl({
src: [harvestMp3],
volume: 0.2,
});
Howler.mute(true);
harvestAudio.play();
The Problem
When harvesting, logic equivalent to the reduced repro is invoked.
After loading the game or after waiting a minute, the next harvest results in
play()
being invoked as above. The speaker on my laptop clicks. This suggests to me the speaker is being awoken even though howler is set to muted. In addition to being annoying, this is a waste of battery power.When muted, howler shouldn't wake up the audio hardware at all.
Reproducible Example
No response
Reproduction Steps
Repro reduced from Sunflower Land:
Possible Solution
No response
Context
No response
Howler.js Version
2.2.3
Affected Browser(s)/Versiuon(s)
Edge (Chromium) / 112.0.1722.34