Beispiel #1
0
 /// <summary>
 /// Read the file header.
 /// </summary>
 public override void ReadHeader()
 {
     if (decoder == null)
     {
         decoder      = new RIFFWaveDecoder(reader);
         ChannelCount = decoder.ChannelCount;
         Length       = decoder.Length;
         SampleRate   = decoder.SampleRate;
         Bits         = decoder.Bits;
     }
 }
Beispiel #2
0
 /// <summary>
 /// Renders a decoded RIFF WAVE stream.
 /// </summary>
 public RIFFWaveRenderer(RIFFWaveDecoder stream) : base(stream)
 {
     SetupChannels(stream.ChannelCount);
     objectSamples[0] = new float[0];
 }