to : CoolSlob(时不我待) 是没有文件头,只有帧头,先找帧头的同步信号$FFF,在帧头中会有边信息,边信息中有本帧开始的偏移量,这样就能一帧一帧的找,直到结尾。
這是一個老外的回答:mp3 uses frames with fixed sizes -> 1152 samplesso for 48 kHz the duration of one frame is 1152/48000 = 0.024 s for 44.1 kHz its 1152/441000 = 0.0261 sand so onsince in MP3 a frame can be considered an atom (you cant go shorter in length than that) the encoder probably pads the audio stream with silence to get a complete frameIOW - a MP3 file cant have any arbitrary length... only n*1152/sampling rate (n = 1, 2, 3 ...)I'm not sure if this whats going on because 0.06 seconds seems a bit much, but it could be an explanation
这个好象不太正确把?
我也是使用 winamp 2.80
不過經常使用的還是 foobar2000 ,起碼有 foobar2000 SDK 可下載,可是是C...
普通的Mp3個ID3V2.3是寫在文件頭部的。
for 44.1 kHz its 1152/441000 = 0.0261 sand so onsince in MP3 a frame can be considered an atom (you cant go shorter in length than that) the encoder probably pads the audio stream with silence to get a complete frameIOW - a MP3 file cant have any arbitrary length... only n*1152/sampling rate (n = 1, 2, 3 ...)I'm not sure if this whats going on because 0.06 seconds seems a bit much, but it could be an explanation
我隻能取得到整秒。