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

Rafaël Carré funman at videolan.org
Mon Oct 21 14:22:39 CEST 2013


Le 21/10/2013 14:08, Zhang Rui a écrit :
>> 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?

I would default to 44.1 or 48.

Which resampler do we use on android? High-quality speex?


More information about the Android mailing list