Ejemplo n.º 1
0
        public ChannelData(FormatChunk formatChunk, Int32 samples)
        {
            RefValue = 0;
            for (int b = 0; b < formatChunk.BitsPerSample - 1; b++)
            {
                RefValue = (RefValue << 1) | 1;
            }

            Int32 bytesPerSample = formatChunk.AvgBytesPerSec / (formatChunk.Channels * formatChunk.SamplesPerSec);

            samplesCount = samples;
            Samples      = new Int32[samplesCount];
            Analyzer     = new SamplesAnalyzer();
        }
Ejemplo n.º 2
0
 public WaveReader()
 {
     Format         = new FormatChunk();
     WaveFileFormat = new WaveFileFormat();
     Fact           = new FactChunk();
 }