Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
SDL and Pulseaudio
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Gamers & Players
View previous topic :: View next topic  
Author Message
arabcian
n00b
n00b


Joined: 04 Oct 2012
Posts: 21

PostPosted: Sat Oct 20, 2012 3:03 am    Post subject: SDL and Pulseaudio Reply with quote

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
View user's profile Send private message
heiwa
n00b
n00b


Joined: 24 Oct 2012
Posts: 70

PostPosted: Wed Oct 24, 2012 7:47 pm    Post subject: Re: SDL and Pulseaudio Reply with quote

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
View user's profile Send private message
arabcian
n00b
n00b


Joined: 04 Oct 2012
Posts: 21

PostPosted: Thu Oct 25, 2012 10:28 pm    Post subject: Reply with quote

Thanks the problem was with oss emulation i forgot to add oss emulation modules to modules config
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Gamers & Players All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum