// // copied the source file by https://github.com/stackprobe/Factory/blob/master/SubTools/CopyLib.c // public DDSE(DDSound sound_binding) { this.Sound = sound_binding; this.Sound.PostLoaded = this.UpdateVolume_NoCheck; DDSEUtils.Add(this); }
// // copied the source file by https://github.com/stackprobe/Factory/blob/master/SubTools/CopyLib.c // public DDMusic(DDSound sound_binding) { this.Sound = sound_binding; this.Sound.PostLoaded = () => DDSoundUtils.SetVolume(this.Sound.GetHandle(0), 0.0); // ロードしたらミュートしておく。 DDMusicUtils.Add(this); }
public static void Add(DDSound sound) { Sounds.Add(sound); }