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

Rafaël Carré funman at videolan.org
Sat Oct 19 12:16:10 CEST 2013


Le 19/10/2013 08:58, Zhang Rui a écrit :
>> +    if (*rate > 48000)
>> +        *rate = 48000;
>> +
> 
> BTW: The lower bound (4kHz) is also checked in aout/audiotrack.c, but
> I don't have that kind of audio file for test.

Here is a 2kHz: http://people.videolan.org/~funman/bouteille.wav

I generated it with:
avconv -i Bouteille.mp3 -ar 2000 bouteille.wav

wav/pcm should support arbitrary sampling rates (e.g. 42Hz :) but I am
not sure about other codecs, most have sane limitations.


More information about the Android mailing list