zeas
1st June 2010, 08:04
I use BASS_AAC lib to decode a peice of aac(in mp4 which encoded by NeroAacEnc) as a loop clip, but the front and end of decoded clip can't jion together.
Then I observed a fact that the returned length of func BASS_ChannelGetLength is longer than the func BASS_ChannelGetData could decode, which is longer than original PCM data too! I even specified a fixed length for BASS_ChannelGetData, but at the front of the decoded data is silence(about 3200 samples) and the sound has gap again...
I tried NeroAacDec.exe, it returned accuracy samples (only 4 samples less than original PCM).
And foobar2000 showed the currect samples.
MediaInfo.dll could recognize length of this mp4 in ms(not accuracy enough but better than bass_aac).
Does anyone know how to use BASS_AAC lib to get accuracy length or other free AAC decode library better than BASS_AAC ?
Then I observed a fact that the returned length of func BASS_ChannelGetLength is longer than the func BASS_ChannelGetData could decode, which is longer than original PCM data too! I even specified a fixed length for BASS_ChannelGetData, but at the front of the decoded data is silence(about 3200 samples) and the sound has gap again...
I tried NeroAacDec.exe, it returned accuracy samples (only 4 samples less than original PCM).
And foobar2000 showed the currect samples.
MediaInfo.dll could recognize length of this mp4 in ms(not accuracy enough but better than bass_aac).
Does anyone know how to use BASS_AAC lib to get accuracy length or other free AAC decode library better than BASS_AAC ?