Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support of internal sample rate to ALSA driver #965

Open
sadko4u opened this issue Dec 20, 2023 · 0 comments
Open

Add support of internal sample rate to ALSA driver #965

sadko4u opened this issue Dec 20, 2023 · 0 comments

Comments

@sadko4u
Copy link

sadko4u commented Dec 20, 2023

Summary

Not all audio devices provide all sample rates that can be useful. For example, for analog radio broadcasting the 32 kHz sample rate is the preferred one. But trying to set up radio broadcasting chain with 44100 Hz sample rate gives several drawbacks:

  • extra unnecessary frequencies above 16 kHz when trying to maximize loudness;
  • removing these frequencies yields the audio to go out of 0 dbFS dure to gibbs phenomenon and overdrive the radio transceiver.

Instead of this, the best solution looks like just tune the whole audio processing chain in 32 kHz sample rate but not all audio devices support such sample rate. And finally we have different picture as it is on the radio receiver side.

If the audio device does not support 32 kHz sample rate, then the 44100 Hz sample rate is selected.

Instead of this, it is a good option to add on-the-fly resampling to force JACK to internally use 32 kHz sample rate but interact with the device using 44100 kHz. For example, it can be an additional option to ALSA driver:

jackdmp -d alsa --force-sample-rate 32000

This may introduce additional latency but for broadcasting it is pretty OK.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant