mirror of
https://github.com/mempool/mempool.git
synced 2024-11-20 10:21:52 +01:00
Lower volume for sound effects (#385)
* Turn down that racket *shakes cane* * Maybe a little lower * Maybe 80%? * 70? * 30 ok? * 65 sounds best
This commit is contained in:
parent
a530d8b17f
commit
4cbf2e0eb4
@ -20,6 +20,7 @@ export class AudioService {
|
||||
this.isPlaying = true;
|
||||
this.audio.src = '../../../resources/sounds/' + name + '.mp3';
|
||||
this.audio.load();
|
||||
this.audio.volume = 0.65; // 65% volume
|
||||
this.audio.play().catch((e) => {
|
||||
console.log('Play sound failed' + e);
|
||||
});
|
||||
|
Loading…
Reference in New Issue
Block a user