Soften generated audio
This commit is contained in:
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -10,7 +10,7 @@ class SoundDirector {
|
||||
private currentMusicKey?: string;
|
||||
private pendingMusicKey?: string;
|
||||
private musicFadeTimer?: number;
|
||||
private readonly musicVolume = 0.56;
|
||||
private readonly musicVolume = 0.2;
|
||||
|
||||
registerMusicTracks(tracks: AudioTrackMap) {
|
||||
this.musicTracks = tracks;
|
||||
@@ -66,12 +66,12 @@ class SoundDirector {
|
||||
}
|
||||
|
||||
playHover() {
|
||||
this.playTone(660, 0.035, 0.04, 'sine');
|
||||
this.playTone(540, 0.04, 0.018, 'sine');
|
||||
}
|
||||
|
||||
playSelect() {
|
||||
this.playTone(330, 0.08, 0.12, 'triangle');
|
||||
window.setTimeout(() => this.playTone(495, 0.1, 0.08, 'triangle'), 65);
|
||||
this.playTone(300, 0.07, 0.04, 'sine');
|
||||
window.setTimeout(() => this.playTone(450, 0.08, 0.028, 'sine'), 70);
|
||||
}
|
||||
|
||||
playMusic(key?: string) {
|
||||
|
||||
Reference in New Issue
Block a user