public SoundPiece ChangeVolumeBGM(float time, float p) { Queue <SoundEffect> effectsq = new Queue <SoundEffect>(); effectsq.Enqueue(SoundBuilder.VolumeUpBGM(time, p)); return(new SoundPiece(id++, effectsq)); }
/// <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)); }