Author Topic: [SOLVED] attract + mednafen => no sound  (Read 7959 times)

erwan

  • Newbie
  • *
  • Posts: 3
    • View Profile
[SOLVED] attract + mednafen => no sound
« on: April 05, 2015, 01:40:09 PM »
I have Attract Mode working great with Mame, and I recently added Mednafen to play some console games too.

However I don't have any sound when I launch a mednafen game from Attract. I have the sound working when I launch mednafen directly I have sound working correctly.

Getting this error:

Code: [Select]
Initializing sound...
  Using "ALSA" audio driver with SexyAL's default device selection.ALSA Error: snd_pcm_open(&alsa_pcm, id ? id : "hw:0", SND_PCM_STREAM_PLAYBACK, 0) Device or resource busy
Error opening a sound device.
« Last Edit: April 06, 2015, 01:08:40 PM by erwan »

akafox

  • Hero Member
  • *****
  • Posts: 985
    • View Profile
Re: attract + mednafen => no sound
« Reply #1 on: April 05, 2015, 07:46:40 PM »
I had this problem as well. Easy fix. First run mednafen by itself..should have sound (if not it's mednafen not attract mode.) but i had to change some settings. You are using linux or windows erwan?

Look for this in your mednafen config file: (Ctrl+F to search)
Code: [Select]
;Select sound output device.
sound.device default

;Select sound driver.
sound.driver default

Make it look like this:
Code: [Select]
;Select sound output device.
sound.device default

;Select sound driver.
sound.driver sdl

I think I had that problem with any front end..not just attract mode
« Last Edit: April 06, 2015, 05:55:43 AM by akafox »
People want life easy..then complain about it

erwan

  • Newbie
  • *
  • Posts: 3
    • View Profile
Re: attract + mednafen => no sound
« Reply #2 on: April 06, 2015, 01:08:19 PM »
That worked indeed, thank you very much!