Beispiel #1
0
        //
        //	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);
        }
Beispiel #2
0
        //
        //	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);
        }
Beispiel #3
0
 public static void Add(DDSound sound)
 {
     Sounds.Add(sound);
 }