mirror of
https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
synced 2025-11-07 13:30:03 -05:00
sink, source: Add a mode to avoid resampling if possible
This adds an "avoid-resampling" option to daemon.conf that makes the daemon try to use the stream sample rate if possible (the device needs to support it, which currently only ALSA does), and there should not be any other stream connected). This should enable some of the "audiophile" use-cases where users wish to play high sample rate audio files without resampling. We still will do conversion if sample formats don't match, though. This means that if you want to play 96 kHz/24 bit audio without any modification the default format will need to be set to be 24-bit as well. This will force all streams to be upconverted, which, other than the wasted resources, should be relatively harmless.
This commit is contained in:
parent
5e1bb023a2
commit
cc021c7330
8 changed files with 30 additions and 4 deletions
|
|
@ -199,6 +199,7 @@ struct pa_core {
|
|||
bool disallow_exit:1;
|
||||
bool running_as_daemon:1;
|
||||
bool realtime_scheduling:1;
|
||||
bool avoid_resampling:1;
|
||||
bool disable_remixing:1;
|
||||
bool remixing_use_all_sink_channels:1;
|
||||
bool disable_lfe_remixing:1;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue