b2gdev / Android-JB-4.1.2

A modified Android Jelly Bean 4.1.2 source tree (x-loader, u-boot, Kernel and Filesystem) for the b2g
2 stars 9 forks source link

Recording only appears to work with PCM codec @ 44 kHz. #10

Closed ruvi-d closed 8 years ago

ruvi-d commented 8 years ago

AMR and AAC codecs does not appear to work.

ruvi-d commented 8 years ago

Isolated the issue to the "resampler" in the audio HAL. Currently testing a fix that partially fixes this issue. With this fix, recordings using AMR and PCM are now audible but not particularly clear.

ruvi-d commented 8 years ago

Fix added to release v4.3.3

ruvi-d commented 8 years ago

As of release v4.3.3 audio capture is supported @ 8,16,32 and 44.1 KHz using AMR-WB (PCM) and AMR-NB codecs. Audio quality is best at 44.1 KHz and there is a noticeable drop in quality at other sampling rates. The implications are that some applications (depending on its implementation) will not record very clear audio. Applications that leverage voice commands are not typically effected by this as they usually capture audio at the highest quality setting, which is 44.1 KHz in our case.