Ubuntu Forums ubuntu.com - launchpad.net - ubuntu help  

Go Back   Ubuntu Forums > The Ubuntu Forum Community > Forum Archive > Main Support Categories > Multimedia & Video
Register Reset Password Forum Help Forum Council Search Today's Posts Mark Forums Read

Hello, Unregistered You are browsing a READ only archive of the main support categories pre 4/21/2008. You will not be able to post or reply any threads in this section.
Ubuntu 9.10 is out!!!

When downloading Ubuntu 9.10 please consider using bittorrent to get your copy of Ubuntu.

The Ubuntu Developers Summit for Lucid Lynx will be held the week of 16-Nov-2009 till 20-Nov-2009 in Dallas, TX USA. Visit the the Ubuntu wiki for more information about UDS and how to participate remotely.

Multimedia & Video
Have multimedia question? ATI, Nvidia, Sound cards. Just ask here.

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Old October 28th, 2007   #1
cogadh
I Ubuntu, Therefore, I Am
 
cogadh's Avatar
 
Join Date: Oct 2005
Location: U.S.A.
Beans: 3,331
Ubuntu 9.04 Jaunty Jackalope
Send a message via ICQ to cogadh
ALSA, PulseAudio and 5.1 surround sound

I finally got surround sound working properly with ALSA on my machine when I discovered that ESD couldn't handle sound properly with some games. I found that using the PulseAudio ESD compatibility package would fix that problem, but it broke the surround sound functions. I haven't been able to find anything definitive about using PulseAudio in a surround sound situation, so I hope someone here can help.

Basically to get surround sound working originally, I created an .asoundrc file with the following:
Code:
pcm.!default {
    type plug
    slave.pcm "surround51"
    slave.channels 6
    route_policy duplicate
}
After doing this, I was able to get the stereo sound replicated across all 6 channels for normal audio playback and I can get applications to use the "surround51" plug for audio from 5.1 sources (DVD movies and the like).

After installing the pulseaudio and pulseaudio-esound-compat packages, stereo sound is back to only coming from the front two channels instead of replicated across all 6 channels and running the ALSA speaker test produces results like this:
Code:
cogadh@ubuntu-desktop:~$ speaker-test -Dplug:surround51 -c6 -l1 -twav

speaker-test 1.0.14

Playback device is plug:surround51
Stream parameters are 48000Hz, S16_LE, 6 channels
WAV file(s)
Playback open error: -16,Device or resource busy
Playback open error: -16,Device or resource busy
Playback open error: -16,Device or resource busy
Playback open error: -16,Device or resource busy
Playback open error: -16,Device or resource busy
Playback open error: -16,Device or resource busy
Playback open error: -16,Device or resource busy
Playback open error: -16,Device or resource busy
Playback open error: -16,Device or resource busy
Playback open error: -16,Device or resource busy
Playback open error: -16,Device or resource busy
Playback open error: -16,Device or resource busy
Playback open error: -16,Device or resource busy
The playback open error occurs repeatedly until I kill the speaker test. The PulseAudio documentation at http://pulseaudio.org/ did not help at all, as it doesn't seem to cover any situation involving surround sound. Anybody have any suggestions on how to fix this?
cogadh is offline   Reply With Quote
 

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 10:16 PM.


vBulletin ©2000 - 2009, Jelsoft Enterprises Ltd. Ubuntu Logo, Ubuntu and Canonical © Canonical Ltd. Tango Icons © Tango Desktop Project. lingonberry