public void then_the_SUT_should_write_the_corrent_frames_count()
 {
     using (var waveForm = new WaveformFileWaveformReader(_filePath).Read())
     {
         waveForm.FrameCount.ShouldEqual(_frames.Length);
     }
 }
 public void then_the_SUT_should_write_the_file_format_specified()
 {
     using (var waveForm = new WaveformFileWaveformReader(_filePath).Read())
     {
         WaveformFormatHelper.CheckFormat(waveForm.Format, _channelsCount, _samplesPerSecond, _bitsPerSample);
     }
 }
 public void then_the_SUT_should_write_the_frames_specified()
 {
     using (var waveForm = new WaveformFileWaveformReader(_filePath).Read())
     {
         var framesFromFile = waveForm.GetFrames().ToArray();
         var expectedFrames = _frames.Cast <IWaveformFrame>().ToArray();
         framesFromFile.ShouldLookLike(expectedFrames);
     }
 }
Esempio n. 4
0
        public static StreamWaveform ReadWaveformFile(string path)
        {
            var waveFormReader = new WaveformFileWaveformReader(path);

            return(waveFormReader.Read());
        }