linux 5.1 audio

How PulseAudio works.

Image via Wikipedia

Today most- finally, after a chamber of time, I decided to buy more cables to hang up 5.1 my audio system fully. Until now I used it with a normal stereo cable and then the system divided the audio channels itself. Which is not good at all. Now there is a separate cable for each channel and the sound is much clearer (of course), the denser and in the movies the feeling is improved many times over. There were a few small dramas that were relatively intuitive. The main drama was, that the sound went only in the front speakers without buffer center or rear after I reconfigured the sound scheme of Gnome to be 5.1 . In most players I have the option to set in alsa part for how many channels the audio is, but there are programs that do not have such an option as, say, adobe flash player. My original idea was just to reconfigure .asoundrc by setting parameters to duplicate the sound on all channels – a decision I'm not proud of because I didn't consider it at all. The configuration is trivial :

pcm.!default {
type plug
slave.pcm “surround51”
slave.channels 6
route_policy duplicate

With it, things fell into place until I realized that alsa can only handle more 1 process and until he finishes using it another can not. 😳 Unpleasant but in fact I forgot the times when you listen to either player or youtube and if one of you gets bored you have to close the program, to use the other application. Which immediately told me where the real root of things was – the pulseaudio server configuration. Pulseaudio is roughly a proxy server that processes the information between the audio hardware and the audio software that wants to use it. A system that has proven itself many times over the years. При нея конфигурацията се намира в /etc/pulse/daemon.conf. По подразбиране всичко е закоментирано с ; така че ако не сте праивли промени може направо смело да добавите следните редове накрая на файлът:

enable-lfe-remixing = yes

default-sample-rate = 48000
default-sample-channels = 6

The names of the options are obvious we set the value of how much channel audio we will be a small tuning of the standard bitrate and enable lfe remixing. След това остава да рестартирате alsa и pulseaudio с

sudo /etc/init.d/alsa-utils restart && pulseaudio -k

From now on, all that's left for me is to enjoy the already good audio.

edit: .asoundrc must be with content so that you do not have problems with skype and some other applications

pcm.pulse {type pulse }
ctl.pulse { type pulse }

Enhanced by Zemanta

Leave a Reply

Your email address will not be published.

Anti SPAM *