Hi I have a question about AudioFlinger::getInputBufferSize(). What is
it suppose to return?

Looking at the implementation, it returns
mAudioHardware->getInputBufferSize()
which means it reports the input buffer size supported by the current
hardware with default configuration (yes/no?)

However, AudioFlinger creates a RecordThread during openInput, in
which this thread can resample the HW input to the requested input.
e.g. HW supports only 8k, mono, but input is requested for 44.1k,
stereo. RecordThread does the conversion.

Now, there is HW buffer and Requested (resampled) buffer.

Which one should AudioFlinger::getInputBufferSize() return?

Judging by the way AudioRecord is using it, it seems that it should
return the Requested buffer size (e.g. after resampling). But then, it
means the implementation to call mAudioHardware->getInputBufferSize is
wrong, since HAL doesn't know of the resampling.

So which way should it go?

Thanks,
echo.

-- 
unsubscribe: android-porting+unsubscr...@googlegroups.com
website: http://groups.google.com/group/android-porting

Reply via email to