Bug 100283

Summary: proposal: Use for destination sample rate from source with maximum sample rate (of course which supported by DAC)
Product: PulseAudio Reporter: mikhail.v.gavrilov
Component: daemonAssignee: pulseaudio-bugs
Status: RESOLVED DUPLICATE QA Contact: pulseaudio-bugs
Severity: normal    
Priority: medium CC: lennart, mikhail.v.gavrilov
Version: unspecified   
Hardware: All   
OS: All   
Whiteboard:
i915 platform: i915 features:

Description mikhail.v.gavrilov 2017-03-20 05:30:04 UTC
proposal: Use for destination sample rate from source with maximum sample rate (of course which supported by DAC).

I know what I can configure needed sample rate with file:
/etc/pulse/daemon.conf
resample-method = src-sinc-medium-quality
default-sample-format = s24le
default-sample-rate = 192000

But it looks useless when all sources have 44100 Hz sample rate.

My proposal in what automatically increases output sample rate when we having some source with higer sample rate.

This saves resources CPU when system not playing sound with hight sample rate, and simplicise use Linux for audiophile users (not needed edit /etc/pulse/daemon.conf file for get better sound quality)
Comment 1 Arun Raghavan 2017-03-20 07:26:34 UTC
There will be an 'avoid-resampling' option in the next PA release to achieve what you want.

*** This bug has been marked as a duplicate of bug 57503 ***
Comment 2 mikhail.v.gavrilov 2017-03-23 05:36:03 UTC
Thanks, will be waiting Pulse Audio 11.
Why not applying 'avoid-resampling' option by default? (It will not make anything worse)
Comment 3 Tanu Kaskinen 2017-04-27 13:07:48 UTC
The feature is disabled by default, because ultrasonic audio can cause audible distortion in the audible frequency range. See the "192kHz considered harmful" section in this article: https://people.xiph.org/~xiphmont/demo/neil-young.html

Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.