Esempio 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();
        }
Esempio n. 2
0
 public WaveReader()
 {
     Format         = new FormatChunk();
     WaveFileFormat = new WaveFileFormat();
     Fact           = new FactChunk();
 }