示例#1
0
 public WemCr2wInputPair(LanguageSpecificID id, UInt32 id_high, Func <Stream> wem, UInt32 wem_size, Single duration, Func <Stream> cr2w, UInt32 cr2w_size)
 {
     this.id        = id;
     this.id_high   = id_high;
     this.wem       = wem;
     this.wem_size  = wem_size;
     this.duration  = duration;
     this.cr2w      = cr2w;
     this.cr2w_size = cr2w_size;
 }
示例#2
0
 public ItemInfo(LanguageSpecificID id, UInt32 id_high, UInt32 wem_offs, UInt32 wem_size, UInt32 cr2w_offs, UInt32 cr2w_size, Single duration)
 {
     this.id        = id;
     this.id_high   = id_high;
     this.wem_offs  = wem_offs;
     this.wem_size  = wem_size;
     this.cr2w_offs = cr2w_offs;
     this.cr2w_size = cr2w_size;
     this.duration  = duration;
 }
示例#3
0
 public SpeechEntry(IGameArchive bundle, LanguageSpecificID id, UInt32 id_high, UInt32 wem_offs, UInt32 wem_size, UInt32 cr2w_offs, UInt32 cr2w_size, Single duration)
 {
     this.Archive    = bundle;
     this.id         = id;
     this.id_high    = id_high;
     this.wem_offs   = wem_offs;
     this.wem_size   = wem_size;
     this.cr2w_offs  = cr2w_offs;
     this.cr2w_size  = cr2w_size;
     this.duration   = duration;
     this.Size       = wem_size + cr2w_size;
     this.ZSize      = wem_size + cr2w_size;
     this.Name       = id.ToString() + ".cr2w_wem_pair";
     this.PageOffset = cr2w_offs;
 }
示例#4
0
 /// <summary>
 /// Converts the language specific id as found in w3speech files to the language neutral id that is the same across all languages.
 /// </summary>
 /// <param name="specific_id">The language specific id as found in w3speech files.</param>
 /// <param name="language">The language information used to convert the id.</param>
 /// <returns>The language neutral id that is the same across all languages.</returns>
 public static LanguageNeutralID Convert(LanguageSpecificID specific_id, W3Language language)
 {
     return(new LanguageNeutralID(specific_id.value ^ language.Magic.value));
 }