Ejemplo n.º 1
0
        public override void UnExecute()
        {
            ChannelsProperty chProp = m_SelectionData.m_TreeNode.GetOrCreateChannelsProperty();

            ManagedAudioMedia manMed = m_SelectionData.m_TreeNode.GetManagedAudioMedia();

            if (manMed != null)
            {
                chProp.SetMedia(ChannelOfOriginalMedia, null);
            }

            chProp.SetMedia(ChannelOfOriginalMedia, OriginalManagedAudioMedia.Copy());
        }
        public override void UnExecute()
        {
            ManagedAudioMedia manMedia = TreeNode.GetManagedAudioMedia();
            ChannelsProperty  chProp   = TreeNode.GetChannelsProperty();
            Channel           channel  = null;

            foreach (Channel ch in chProp.UsedChannels)
            {
                if (manMedia == chProp.GetMedia(ch))
                {
                    channel = ch;
                    break;
                }
            }
            chProp.SetMedia(channel, null);
            chProp.SetMedia(channel, OriginalManagedAudioMedia.Copy());

            //Time duration = ManagedAudioMediaSource.Duration;
            //ManagedAudioMediaTarget.AudioMediaData.RemovePcmData(TimeInsert, TimeInsert.Add(duration));
        }