public MyAudioPlayer CreateAudioPlayer(MF.SourceReader mfSourceReader) { var player = new MyAudioPlayer(); player.Init(this._xaudio, mfSourceReader); return(player); }
public static void SafeDestroy(ref MyAudioPlayer obj) { if (obj != null) { obj.Destroy(); obj = null; } }