public TreeNodePlaybackHandler(TreeNode node, Channel audioCh, bool contAfterNode, UrakawaPlaybackAudioDevice playDev) { mCurrentTreeNode = node; mAudioChannel = audioCh; mContinueAfterTreeNode = contAfterNode; mPlaybacAudiokDevice = playDev; mPlaybacAudiokDevice.AudioMediaDataPlayEnded += new EventHandler <EndedEventArgs>(PlaybacAudiokDevice_AudioMediaDataPlayEnded); mTreeNodeNavigator = new urakawa.navigation.TypeFilterNavigator <TreeNode>(); resetElapsedTime(); }
public void Dispose() { if (mPlaybacAudiokDevice != null) { mPlaybacAudiokDevice.AudioMediaDataPlayEnded -= new EventHandler <EndedEventArgs>(PlaybacAudiokDevice_AudioMediaDataPlayEnded); } mPlaybacAudiokDevice = null; mTreeNodeNavigator = null; mCurrentTreeNode = null; mAudioChannel = null; }