Esempio n. 1
0
        public static SoundEffect RemoveBGM()
        {
            SoundBuilder builder = new SoundBuilder();
            SoundEffect  e       = builder.Source(SoundEffect.SoundType.BGM)
                                   .Operater(SoundEffect.OperateType.Remove)
                                   .Get();

            return(e);
        }
Esempio n. 2
0
        public static SoundEffect VolumeDownBGM(float time, float change)
        {
            SoundBuilder builder = new SoundBuilder();
            SoundEffect  e       = builder.Source(SoundEffect.SoundType.BGM)
                                   .Operater(SoundEffect.OperateType.VolumeDown)
                                   .TotalTime(time)
                                   .Argus(change)
                                   .Get();

            return(e);
        }
Esempio n. 3
0
        public static SoundEffect SetSE(string fname, float time, bool loop)
        {
            SoundBuilder builder = new SoundBuilder();
            SoundEffect  e       = builder.Source(SoundEffect.SoundType.SE)
                                   .Operater(SoundEffect.OperateType.Set)
                                   .TotalTime(time)
                                   .Loop(loop)
                                   .Get();

            return(e);
        }