Attract-Mode Support Forum

Attract-Mode Support => General => Topic started by: erwan on April 05, 2015, 01:40:09 PM

Title: [SOLVED] attract + mednafen => no sound
Post by: erwan 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.
Title: Re: attract + mednafen => no sound
Post by: akafox 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
Title: Re: attract + mednafen => no sound
Post by: erwan on April 06, 2015, 01:08:19 PM
That worked indeed, thank you very much!