Comment 1 for bug 1475420

Revision history for this message
Daniel Schürmann (daschuer) wrote :

Since PA_ALSA_PLUGHW is an Portaudio flag, it is up to Mixxx to set it.

But we need to careful consider when Mixxx should set this flag. I think it should be the last resort, since it adds another re-sampling stage to the audio processing chain.

Every resample stage adds noise to the stream, since it tries to predict the voltage level between to samples.

If you set Mixxx to a native soundcard sample rate it is able to process the Audio with only one resampling stage. We pass the samples with the source sample rate to the Enginebuffer and re-sample it in one step to the output sample rate, including all scratching and pitch shifting:
https://github.com/mixxxdj/mixxx/blob/752b3cc3f64c3597b78a5818b3533a1ec82d5f26/src/engine/enginebuffer.cpp#L981

The only case I can think of that requires an additional re-sampling is if two soundcards have no common native sample-rates.
But I have not heard of a sound-card that does not support 48 Khz. Is there any?

If yes, Mixxx may detect it and guide the user to the best set up.