View previous topic :: View next topic |
Author |
Message |
arabcian n00b
Joined: 04 Oct 2012 Posts: 21
|
Posted: Sat Oct 20, 2012 3:03 am Post subject: SDL and Pulseaudio |
|
|
Hello
Im getting
(snd_pcm_open_noupdate) Unknown PCM default error when i try to play sdl games on my gentoo system everytime i need to give "export SDL_AUDIODRIVER=pulse" command before starting games to get sound. is there a way to automate that or setting SDL to use pulseaudio driver permanently? |
|
Back to top |
|
|
heiwa n00b
Joined: 24 Oct 2012 Posts: 70
|
Posted: Wed Oct 24, 2012 7:47 pm Post subject: Re: SDL and Pulseaudio |
|
|
For automation of exporting environment variables you can put it into a file in /etc/env.d/. Look at the other files in this directory for the syntax. Afterwards you need to run etc-update and to source /etc/profile or restart X or just reboot.
I think the defaults for SDL are permanently set up at compile time, but I'm not sure. |
|
Back to top |
|
|
arabcian n00b
Joined: 04 Oct 2012 Posts: 21
|
Posted: Thu Oct 25, 2012 10:28 pm Post subject: |
|
|
Thanks the problem was with oss emulation i forgot to add oss emulation modules to modules config |
|
Back to top |
|
|
|