Sunday, 15 May 2011

android - number of frames recorded by AudioRecorder -



android - number of frames recorded by AudioRecorder -

i using audiorecorder record sound 300 milliseconds. that, used timertask , scheduleatfixedrate stop recording after 300 milliseconds. when check output files, length varying file offset equal 4096, constant(+/-), , when checked found out framecount*2. so, because non precision of threads? if so, framecount corresponds in seconds?

audio i/o apis processing things in sizes 4096 (a powerfulness of 2). if file sizes 4096, best guess it's minimum frame granularity guaranteed api, though might not explicitly documented.

if really need 300 ms of audio, might need manual postprocessing in order chop off samples.

android audio

No comments:

Post a Comment