示例#1
0
        public SoundPiece ChangeVolumeBGM(float time, float p)
        {
            Queue <SoundEffect> effectsq = new Queue <SoundEffect>();

            effectsq.Enqueue(SoundBuilder.VolumeUpBGM(time, p));
            return(new SoundPiece(id++, effectsq));
        }
示例#2
0
        /// <summary>
        /// 继续背景音乐
        /// </summary>
        /// <param name="fadein">淡入时间,默认0</param>
        /// <returns></returns>
        public SoundPiece UnpauseBGM(float fadein = 0f)
        {
            Queue <SoundEffect> effectsq = new Queue <SoundEffect>();

            effectsq.Enqueue(SoundBuilder.UnpauseBGM());
            if (fadein != 0f)
            {
                effectsq.Enqueue(SoundBuilder.VolumeUpBGM(fadein, 1));
            }
            return(new SoundPiece(id++, effectsq));
        }