RESOLVED
I changed all the permissions in /dev/snd to 777 and it started working.
I'm currently running 64 bit Fedora 9. I can record in Audacity, chat in TeamSpeak, listen to Amarok, hear audio from flash videos, etc.
However when I open a new X session I lose all sound in that session.
I have two monitors so when I want to play an RTS or other game that involves much scrolling I use a script to open a separate X session with one monitor disabled.
Code:
#!/bin/sh
X :3 -ac -config xorg_game.conf &
cd ~/".wine/drive_c/Program Files/THQ/Dawn of War - Dark Crusade"
sleep 2
DISPLAY=:3 nice -10 /usr/bin/wine DarkCrusade.exe
/usr/bin/kill $(ps ax|grep "X :3")
I've tried modifying the script to run the Linux TeamSpeak binary but I also lose sound with that. When I run Dark Crusade, or any other program, normally then sound works just fine.
I'm really scratching my head as to what is going on and the best I can come up with is that maybe some sort of daemon needs to be launched on startup of an X session, but I wouldn't know which one(s).
Looking through the startup programs in GNOME I added "pactl load-module module-x11-xsmp" into the script between starting X and the game, but I'm still not getting any sound.
How can I get sound working in the new X sessions?