public void Convert(int index, SND.sound_pitch_range_block.sound_permutations_block h1) { this.Name.ResetFromString(h1.Name); this.SkipFraction.Value = h1.SkipFraction.Value; this.Gain.Value = h1.Gain.Value; this.SamplesSize.Value = h1.Samples.Value.Length; this.RawInfo.Value = index; }
public void Convert(SND h1) { this.GainModifier.Lower = h1.GainModifier1.Value; this.GainModifier.Upper = h1.GainModifier2.Value; //this.PitchModifier.Lower = (short)h1.PitchModifier1.Value; //this.PitchModifier.Upper = (short)h1.PitchModifier2.Value; this.SkipFractionModifier.Lower = h1.SkipFractionModifier1.Value; this.SkipFractionModifier.Upper = h1.SkipFractionModifier2.Value; }
public void Convert(SND h1) { this.MinDist.Value = h1.Distance.Lower; this.MaxDist.Value = h1.Distance.Upper; this.SkipFraction.Value = h1.SkipFraction.Value; ////this.RandomPitchBounds.Lower = (short)h1.RandomPitchBounds.Lower; ////this.RandomPitchBounds.Upper = (short)h1.RandomPitchBounds.Upper; this.InnerConeAngle.Value = h1.InnerConeAngle.Value; this.OuterConeAngle.Value = h1.OuterConeAngle.Value; this.OuterConeGain.Value = h1.OuterConeGain.Value; this.MaxBendPerSec.Value = h1.MaxBendPerSecond.Value; }
public void Convert(SND h1) { Debug.Assert.If(h1.Compression.Value != 3, "Can't convert ogg sounds!"); this.Flags.Value = h1.Flags.Value; this.Class.Value = h1.Class.Value; ConvertClass(); this.SampleRate.Value = h1.SampleRate.Value; this.ImportType.Value = 2; // single-layer this.Playback.Value.Convert(h1); this.Scale.Value.Convert(h1); this.Encoding.Value = h1.Encoding.Value; this.Compression.Value = h1.Compression.Value; ConvertPermutations(h1); }
void ConvertPermutations(SND h1) { sound_pitch_range_block pitchrange; foreach (SND.sound_pitch_range_block pr in h1.PitchRanges) { PitchRanges.Add(out pitchrange); pitchrange.Convert(pr); } sound_extra_info_block extra; ExtraInfo.Add(out extra); extra.Convert(h1); }
public void Convert(SND h1) { if (h1.PitchRanges.Count < 1) { return; } sound_definition_language_permutation_info_block perm; foreach (SND.sound_pitch_range_block.sound_permutations_block pr in h1.PitchRanges[0].Permutations) { LanguagePermutationInfo.Add(out perm); perm.Convert(pr); } }
void ConvertPermutations(SND h1) { sound_pitch_range_block pitchrange; foreach(SND.sound_pitch_range_block pr in h1.PitchRanges) { PitchRanges.Add(out pitchrange); pitchrange.Convert(pr); } sound_extra_info_block extra; ExtraInfo.Add(out extra); extra.Convert(h1); }
public void Convert(SND h1) { if (h1.PitchRanges.Count < 1) return; sound_definition_language_permutation_info_block perm; foreach (SND.sound_pitch_range_block.sound_permutations_block pr in h1.PitchRanges[0].Permutations) { LanguagePermutationInfo.Add(out perm); perm.Convert(pr); } }
public void Convert(SND.sound_pitch_range_block.sound_permutations_block perm) { sound_permutation_raw_info_block raw; RawInfoBlock.Add(out raw); raw.Convert(perm); }
public void Convert(SND.sound_pitch_range_block.sound_permutations_block h1) { Debug.Assert.If(h1.Compression.Value != 3, "Can't convert ogg sounds! '{0}'", h1.Name.Value); h1.Samples.CopyTo(this.Samples); h1.Mouth.CopyTo(this.MouthData); this.Compression.Value = h1.Compression.Value; }
public void Convert(SND.sound_pitch_range_block h1) { this.Name.ResetFromString( (h1.Name == "default" ? "|default|" : h1.Name)); //this.NaturalPitch.Value = (short)h1.NaturalPitch.Value; //this.BendBounds.Lower = (short)h1.BendBounds.Lower; //this.BendBounds.Upper = (short)h1.BendBounds.Upper; sound_permutations_block perm; int count = h1.Permutations.Count; for (int x = 0; x < count; x++) { this.Permutations.Add(out perm); perm.Convert(x, h1.Permutations[x]); } }