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

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


Le 21/10/2013 14:42, Zhang Rui a écrit :
>>> 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.
> 
> OK. And what about the lower limit?

Hm if we first try the given samplerate and default to 44.1 or 48 if it
doesn't work we don't need an upper or lower limit, no?

>> Which resampler do we use on android? High-quality speex?
> 
> The module named 'ugly_resampler' is used for the 96kHz one, , in 0.1.3

Then maybe we need some logic to have an integer multiple of the
original samplerate because afaiu if we don't do this we could have some
ugly quality (as the name implies)

> 10-21 20:35:16.505: D/VLC(2882): main audio output: using audio output
> module "opensles_android"
> 10-21 20:35:16.521: D/VLC(2882): main audio output: output 's16l'
> 44100 Hz Stereo frame=1 samples/4 bytes
> 10-21 20:35:16.521: D/VLC(2882): main volume: looking for audio volume
> module matching "any": 3 candidates
> 10-21 20:35:16.521: D/VLC(2882): main volume: using audio volume
> module "integer_mixer"
> 10-21 20:35:16.521: D/VLC(2882): main audio output: input 'f32l' 96000
> Hz Stereo frame=1 samples/8 bytes
> 10-21 20:35:16.536: D/VLC(2882): main audio output: conversion:
> 'f32l'->'s16l' 96000 Hz->96000 Hz Stereo->Stereo
> 10-21 20:35:16.536: D/VLC(2882): main audio converter: looking for
> audio converter module matching "any": 7 candidates
> 10-21 20:35:16.540: D/VLC(2882): audio_format audio converter:
> f32l->s16l, bits per sample: 32->16
> 10-21 20:35:16.540: D/VLC(2882): main audio converter: using audio
> converter module "audio_format"
> 10-21 20:35:16.540: D/VLC(2882): main audio output: conversion pipeline complete
> 10-21 20:35:16.540: D/VLC(2882): main audio resampler: looking for
> audio resampler module matching "any": 1 candidates
> 10-21 20:35:16.540: D/VLC(2882): main audio resampler: using audio
> resampler module "ugly_resampler"


More information about the Android mailing list