From: Gregory P. <gre...@gm...> - 2014-03-30 08:17:47
|
On Sat, Mar 29, 2014 at 6:50 PM, Niko Efthymiou <ne...@ne...> wrote: > On 29.03.2014 14:54, Gregory Petrosyan wrote: >> On Sat, Mar 29, 2014 at 4:12 PM, Niko Efthymiou <ne...@ne...> wrote: >>> is there a way to specify the sampling rate of the input for an OP? >> >> `_open` callback of the OP has an `sample_format_t` argument, which >> contains sampling rate information (use `sf_get_rate` to get it). > > Well that only gives me the sampling rate my input is in. My question > was if I can specify what kind of input I want. Ah, I understand you now. No — cmus has no built-in general purpose resampling. > Anyway, I just added resampling for the jack OP with libsamplerate. > > Would there be a benefit of doing the resampling and format mangling in > the player? Alsa without plughw or anything? My quick googling tells me that jackd does not resample audio. Resampling in the player seems to be the only option then. As for resampling for other output plugins, I do not remember people complaining about lack of builtin resampling in cmus. I think we can leave that as is for now. Gregory |