[Android] [PATCH] jni/aout: limit sample rate to 48kHz

Zhang Rui bbcallen at gmail.com
Mon Oct 21 14:08:03 CEST 2013


> Ah I didn't know VLC hardcodes a lower limit at 4kHz, and an upper limit
> at 352.8kHz

'amem-rate' has a total different range (1~192kHz) ......

BTW: The 2kHz one works on my Nexus S after resampled to 4kHz,
with MXPlayer and my own ffplay-style player

>> sles: works after resample to 44.1khz
>
> Right, OpenSLES module resamples to 44.1 if original rate fails.
>
> Perhaps we could do the same in java aout? That method would be nicer
> for all devices, no need to resample if some device accepts the original
> rate.

Which upper limit is preferred? 44.1kHz, 48kHz,
or follow the integer multiple of original sample rate?


More information about the Android mailing list