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.isPlaying = true;
 | 
				
			||||||
    this.audio.src = '../../../resources/sounds/' + name + '.mp3';
 | 
					    this.audio.src = '../../../resources/sounds/' + name + '.mp3';
 | 
				
			||||||
    this.audio.load();
 | 
					    this.audio.load();
 | 
				
			||||||
 | 
					    this.audio.volume = 0.65; // 65% volume
 | 
				
			||||||
    this.audio.play().catch((e) => {
 | 
					    this.audio.play().catch((e) => {
 | 
				
			||||||
      console.log('Play sound failed' + e);
 | 
					      console.log('Play sound failed' + e);
 | 
				
			||||||
    });
 | 
					    });
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user