예제 #1
0
 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();
 }
예제 #2
0
 public void Dispose()
 {
     if (mPlaybacAudiokDevice != null)
     {
         mPlaybacAudiokDevice.AudioMediaDataPlayEnded -= new EventHandler <EndedEventArgs>(PlaybacAudiokDevice_AudioMediaDataPlayEnded);
     }
     mPlaybacAudiokDevice = null;
     mTreeNodeNavigator   = null;
     mCurrentTreeNode     = null;
     mAudioChannel        = null;
 }