Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Mednafen and PulseAudio failing to work together
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
zlg
Retired Dev
Retired Dev


Joined: 11 Sep 2012
Posts: 49
Location: Earth

PostPosted: Wed Sep 14, 2016 3:44 am    Post subject: Mednafen and PulseAudio failing to work together Reply with quote

After a recent update (within the last week), I've been getting some audio issues from mednafen. It seems like it's not getting a connection to the PA server and is repeatedly trying to access it. During this time, the game will run at super fast speed and the audio is garbled. Some games eventually straighten out and the sound shows up in pavucontrol like it's supposed to. For most other games, I'm stuck with super fast emulation, *no* control for it in pavucontrol, and garbled sound.

I've tried various fixes, such as setting sound.driver, sound.device, and sound.period_time to varying values. I managed to get audio through SDL working mostly okay, but it crackled and none of the usual fixes worked to resolve the problem.

Has anyone else gotten mednafen to play nice with PulseAudio 9? I'd hate to have to go back to FCE Ultra, snes9x, epsxe, etc. Mednafen's a great emulator but it's always struggled with getting sound right. It's hard to figure out which program is to blame here. Mednafen doesn't spit out any errors and just chugs along super fast, while my audio is completely tied up during this time (mpd can't play, Skype won't make noise, etc).
Back to top
View user's profile Send private message
Ant P.
Watchman
Watchman


Joined: 18 Apr 2009
Posts: 6920

PostPosted: Wed Sep 14, 2016 4:13 pm    Post subject: Reply with quote

Last time I used Mednafen the sound worked okay, but I've got a hardware-mixer sound card so it may have been going through ALSA. Try leaving the config at default and setting SDL_AUDIODRIVER instead.

(Have you considered Retroarch instead? It has everything Mednafen does, and three Pulseaudio drivers)
Back to top
View user's profile Send private message
zlg
Retired Dev
Retired Dev


Joined: 11 Sep 2012
Posts: 49
Location: Earth

PostPosted: Thu Sep 15, 2016 9:09 am    Post subject: Reply with quote

Retroarch seems only available on an overlay. That said, it looks interesting and I might check it out some time.

I changed sound.driver to 'sdl' and sound.device to 'default', and it all seems to be working okay. It's rather odd what exactly was going on...
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