Post by Niko EfthymiouPost by Gregory PetrosyanPost by Niko Efthymiouis 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.
Post by Niko EfthymiouAnyway, 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