From da6d524573caaf21ff24cea123215f1f47a5ebce Mon Sep 17 00:00:00 2001 From: alcexhim Date: Wed, 6 Aug 2014 13:26:49 -0400 Subject: [PATCH] Fixed AudioCollection and Voicebank --- .../Audio/Voicebank/VoicebankEditor.designer.cs | 2 +- .../SynthesizedAudioCollectionTrack.cs | 17 ++++++++++++++++- 2 files changed, 17 insertions(+), 2 deletions(-) diff --git a/CSharp/Engines/WindowsForms/Plugins/UniversalEditor.Plugins.Multimedia.UserInterface.WindowsForms/Editors/Multimedia/Audio/Voicebank/VoicebankEditor.designer.cs b/CSharp/Engines/WindowsForms/Plugins/UniversalEditor.Plugins.Multimedia.UserInterface.WindowsForms/Editors/Multimedia/Audio/Voicebank/VoicebankEditor.designer.cs index d40895ab..8af59141 100644 --- a/CSharp/Engines/WindowsForms/Plugins/UniversalEditor.Plugins.Multimedia.UserInterface.WindowsForms/Editors/Multimedia/Audio/Voicebank/VoicebankEditor.designer.cs +++ b/CSharp/Engines/WindowsForms/Plugins/UniversalEditor.Plugins.Multimedia.UserInterface.WindowsForms/Editors/Multimedia/Audio/Voicebank/VoicebankEditor.designer.cs @@ -46,7 +46,7 @@ namespace UniversalEditor.Editors.Multimedia.Audio.Voicebank private void InitializeComponent() { this.components = new System.ComponentModel.Container(); - System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(VoiceDatabaseEditor)); + System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(VoicebankEditor)); this.groupBox1 = new System.Windows.Forms.GroupBox(); this.button2 = new System.Windows.Forms.Button(); this.lvPhonemes = new System.Windows.Forms.ListView(); diff --git a/CSharp/Plugins/UniversalEditor.Plugins.Multimedia/ObjectModels/Multimedia/AudioCollection/Synthesized/SynthesizedAudioCollectionTrack.cs b/CSharp/Plugins/UniversalEditor.Plugins.Multimedia/ObjectModels/Multimedia/AudioCollection/Synthesized/SynthesizedAudioCollectionTrack.cs index 19f1e38d..87ad8305 100644 --- a/CSharp/Plugins/UniversalEditor.Plugins.Multimedia/ObjectModels/Multimedia/AudioCollection/Synthesized/SynthesizedAudioCollectionTrack.cs +++ b/CSharp/Plugins/UniversalEditor.Plugins.Multimedia/ObjectModels/Multimedia/AudioCollection/Synthesized/SynthesizedAudioCollectionTrack.cs @@ -39,7 +39,22 @@ namespace UniversalEditor.ObjectModels.Multimedia.AudioCollection.Synthesized public string OriginalFileName { get { return mvarOriginalFileName; } set { mvarOriginalFileName = value; } } private SynthesizedAudioObjectModel mvarObjectModel = null; - public SynthesizedAudioObjectModel ObjectModel { get { return mvarObjectModel; } } + public SynthesizedAudioObjectModel ObjectModel { get { return mvarObjectModel; } set { mvarObjectModel = value; } } + + public object Clone() + { + SynthesizedAudioCollectionTrack clone = new SynthesizedAudioCollectionTrack(); + clone.AlbumTitle = (mvarAlbumTitle.Clone() as string); + clone.ArtistName = (mvarArtistName.Clone() as string); + clone.Comments = (mvarComments.Clone() as string); + clone.DumperName = (mvarDumperName.Clone() as string); + clone.GameTitle = (mvarGameTitle.Clone() as string); + clone.ObjectModel = (mvarObjectModel.Clone() as SynthesizedAudioObjectModel); + clone.OriginalFileName = (mvarOriginalFileName.Clone() as string); + clone.PublisherName = (mvarPublisherName.Clone() as string); + clone.SongTitle = (mvarSongTitle.Clone() as string); + return clone; + } } }