LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   Direct playback with PulseAudio (https://www.linuxquestions.org/questions/linux-software-2/direct-playback-with-pulseaudio-878045/)

m.s 04-30-2011 02:39 PM

Direct playback with PulseAudio
 
Hello. I've tried to search the web but I haven't been able to find anything useful, so I'm asking.

There is a setting for PulseAudio which resampling method to choose. But what if I want to completely disable resampling, since my soundcard is probably capable of playing all rates? I have some music in higher frequency and it would be somehow stupid to convert it to a lower rate.

I'm using Debian testing and Fedora 15 if it is of any relevance.
My soundcard is: "00:1b.0 Audio device: Intel Corporation 82801JI (ICH10 Family) HD Audio Controller"

Prehistorik 05-01-2011 03:07 AM

I'm afraid it's not possible in PulseAudio because it mixes audio streams from applications in software. It means that all streams must be converted to the same sample rate before mixing.

I guess you've already seen this: http://linux.die.net/man/5/pulse-daemon.conf

If you want quality, try setting default-sample-rate=96000. I don't think your sound card supports rates higher than 96k.

If you want speed, try resample-method=trivial, resample-method=src-sinc-fastest, resample-method=speex-float-0 and resample-method=speex-float-3, in that order. Stop when you get acceptable sound quality. (I suggest using 44,1 kHz audio for quality testing if you've set the default sample rate to 96k.)

As an alternative, try switching to ALSA. Consult your distribution's manual or wiki on how to do this. It will mix audio streams in hardware if your sound card supports this. You can check if it does by running a command:

Code:

aplay -l
If you see more than one line like the following:

Code:

  Subdevice #0: subdevice #0
then your sound card is likely to have hardware mixing. (But I'm afraid it's not, because my laptop comes with a card similar to yours ("82801H (ICH8 Family)") and it has only one subdevice.)


All times are GMT -5. The time now is 05:57 PM.