/// <summary> /// 根据音频状态描述子重演绎前端的音频 /// </summary> /// <param name="mdescriptor">音频状态描述子</param> public void RePerform(MusicianDescriptor mdescriptor) { // 重演绎背景音乐 if (mdescriptor.PlayingBGM == String.Empty) { this.StopAndReleaseBGM(); } else if (mdescriptor.PlayingBGM == this.CurrentBgm) { this.SetBGMVolume(mdescriptor.BGMVol * (float)this.bgmVolumeRatio); } else { this.PlayBGM(mdescriptor.PlayingBGM, ResourceManager.GetInstance().GetBGM(mdescriptor.PlayingBGM), mdescriptor.BGMVol * (float)this.bgmVolumeRatio); } // 重演绎背景音效 for (int i = 0; i < mdescriptor.PlayingBGS.Count; i++) { if (mdescriptor.PlayingBGS[i] == String.Empty) { this.StopBGS(i); } else if (mdescriptor.PlayingBGS[i] == this.BgsHandleContainer[i].Item2) { this.SetBGSVolume(mdescriptor.BGSVol[i] * (float)this.bgsVolumeRatio, i); } else { this.PlayBGS(mdescriptor.PlayingBGS[i], ResourceManager.GetInstance().GetBGS(mdescriptor.PlayingBGS[i]), mdescriptor.BGSVol[i] * (float)this.bgsVolumeRatio, i); } } }
/// <summary> /// 根据音频状态描述子重演绎前端的音频 /// </summary> /// <param name="mdescriptor">音频状态描述子</param> public void RePerform(MusicianDescriptor mdescriptor) { throw new NotSupportedException(); }