Regenerate softer orchestral bgm
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.2;
|
||||
private readonly musicVolume = 0.14;
|
||||
|
||||
registerMusicTracks(tracks: AudioTrackMap) {
|
||||
this.musicTracks = tracks;
|
||||
@@ -29,7 +29,7 @@ class SoundDirector {
|
||||
if (AudioContextCtor) {
|
||||
this.context = new AudioContextCtor();
|
||||
this.master = this.context.createGain();
|
||||
this.master.gain.value = this.muted ? 0 : 0.34;
|
||||
this.master.gain.value = this.muted ? 0 : 0.3;
|
||||
this.master.connect(this.context.destination);
|
||||
}
|
||||
|
||||
@@ -58,7 +58,7 @@ class SoundDirector {
|
||||
}
|
||||
|
||||
this.master.gain.cancelScheduledValues(this.context.currentTime);
|
||||
this.master.gain.linearRampToValueAtTime(muted ? 0 : 0.34, this.context.currentTime + 0.18);
|
||||
this.master.gain.linearRampToValueAtTime(muted ? 0 : 0.3, this.context.currentTime + 0.18);
|
||||
}
|
||||
|
||||
isMuted() {
|
||||
|
||||
Reference in New Issue
Block a user