How can I remove the first .5 of a second from Wav file?
相关问题
- Sorting 3 numbers without branching [closed]
- Graphics.DrawImage() - Throws out of memory except
- Can we recover audio from MFCC coefficients?
- Why am I getting UnauthorizedAccessException on th
- 求获取指定qq 资料的方法
Here is the format. You need to open up the file, find the size of the header, then remove the required number of samples. You can find the number of bits per sample in the header. A 16-bit WAV file at a sampling rate of 44100 Hz would require you to remove
(16/8) * 44100 * 0.5 = 44100 bytes
A quick Google search turned up a library that may be able to do this.
If you need to do it programatically, you need a wav file parser. The general algorithm would be