Soften generated audio

This commit is contained in:
2026-06-22 00:56:58 +09:00
parent c232a80fcc
commit 9dff6b0f47
7 changed files with 128 additions and 318 deletions

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

View File

@@ -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) {