示例#1
0
        public MyAudioPlayer CreateAudioPlayer(MF.SourceReader mfSourceReader)
        {
            var player = new MyAudioPlayer();

            player.Init(this._xaudio, mfSourceReader);
            return(player);
        }
示例#2
0
 public static void SafeDestroy(ref MyAudioPlayer obj)
 {
     if (obj != null)
     {
         obj.Destroy();
         obj = null;
     }
 }