Example #1
0
 internal StreamWriter 9R(CompressionEnum 0DY)
 {
     int num1;
     Stream stream1 = null;
     if (this.UT != null)
     {
         stream1 = new MemoryStream(this.UT.ToArray());
         if (this.UV)
         {
             stream1 = new V(stream1);
         }
     }
     StreamWriter writer1 = this.9Q(0DY);
     if (stream1 == null)
     {
         return writer1;
     }
     byte[] numArray1 = new byte[1024];
     do
     {
         num1 = stream1.Read(numArray1, 0, numArray1.Length);
         writer1.BaseStream.Write(numArray1, 0, num1);
     }
     while ((num1 >= numArray1.Length));
     return writer1;
 }
Example #2
0
 internal StreamWriter 9Q(CompressionEnum 0DX)
 {
     this.UT = new MemoryStream();
     if (0DX == CompressionEnum.None)
     {
         this.UV = false;
         return new StreamWriter(this.UT);
     }
     this.UV = true;
     X x1 = new X(this.UT, 0DX);
     return new StreamWriter(x1);
 }
Example #3
0
 public override System.Collections.Generic.Queue <Moonfish.Tags.BlamPointer> ReadFields(System.IO.BinaryReader binaryReader)
 {
     System.Collections.Generic.Queue <Moonfish.Tags.BlamPointer> pointerQueue = new System.Collections.Generic.Queue <Moonfish.Tags.BlamPointer>(base.ReadFields(binaryReader));
     this.CacheFileSoundFlags  = ((Flags)(binaryReader.ReadInt16()));
     this.SoundClass           = ((SoundClassEnum)(binaryReader.ReadByte()));
     this.SampleRate           = ((SampleRateEnum)(binaryReader.ReadByte()));
     this.Encoding             = ((EncodingEnum)(binaryReader.ReadByte()));
     this.Compression          = ((CompressionEnum)(binaryReader.ReadByte()));
     this.PlaybackIndex        = binaryReader.ReadInt16();
     this.FirstPitchRangeIndex = binaryReader.ReadInt16();
     this.PitchRangeCount      = binaryReader.ReadByte();
     this.ScaleIndex           = binaryReader.ReadByte();
     this.PromotionIndex       = binaryReader.ReadByte();
     this.CustomPlaybackIndex  = binaryReader.ReadByte();
     this.ExtraInfoIndex       = binaryReader.ReadInt16();
     this.MaximumPlayTime      = binaryReader.ReadInt32();
     return(pointerQueue);
 }