Пример #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);
        }
Пример #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);
        }
Пример #3
0
 public static void Add(DDSound sound)
 {
     Sounds.Add(sound);
 }