reader = new WaveFileReader(audioFileLocation)) // Do something....如果给出一个引发异常的wav文件:
异常详细信息: System.FormatException:不是波形文件-没有RIFF头
它锁定文件audioFileLocation,从而防止文件被删除。在使用读取器之前,是否有任何方法检查是否存在有效的RIFF标头?
我正在尝试使用FileStream从WAV文件中提取BitsPerSample。根据该来源:,BitsPerSample位于偏移量35处并且是2字节长。public int getBitsPerSample() int bitsPerSample; { byte[] val = new byte[2]; bi
/Versions/3.4/lib/python3.4/wave.py", line 130, in initfpwave.Error: file does not start with RIFF id
During handling of the above exception, another exception