mirror of
				https://codeberg.org/yeentown/barkey.git
				synced 2025-11-03 23:14:13 +00:00 
			
		
		
		
	fix-6096 (#11281)
This commit is contained in:
		
							parent
							
								
									9e330c9e38
								
							
						
					
					
						commit
						866e3f0432
					
				
					 1 changed files with 1 additions and 3 deletions
				
			
		| 
						 | 
				
			
			@ -132,9 +132,7 @@ export function play(type: 'noteMy' | 'note' | 'antenna' | 'channel' | 'notifica
 | 
			
		|||
}
 | 
			
		||||
 | 
			
		||||
export function playFile(file: string, volume: number) {
 | 
			
		||||
	const masterVolume = soundConfigStore.state.sound_masterVolume;
 | 
			
		||||
	if (masterVolume === 0) return;
 | 
			
		||||
 | 
			
		||||
	const audio = setVolume(getAudio(file), volume);
 | 
			
		||||
	if (audio.volume === 0) return;
 | 
			
		||||
	audio.play();
 | 
			
		||||
}
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		
		Reference in a new issue