2013-02-25, 08:43
My current setup: I'm using the latest testing version of OpenELEC on an Intel computer. My video is coming to the TV through an HDMI cable, but the audio is going through the headphone jack on the computer to separate speakers. The HDMI has never transmitted sound, but it was never an issue for me as I didn't want it to.
Everything else plays sound just fine, but when I try to launch a ROM in Mednafen (via Rom Collection Browser), there is no sound. I am currently using version 0.6 of Mednafen as the video was not working in 0.9 (because I possibly have a 64bit computer? Got a bit confused here but didn't pursue it because it worked). I've read other threads about this, but most are looking for ways to set-up audio to come out of two separte surround sound speaker systems and the like, I'm just interested in a super simple 2 channel analog audio output setup.
Things I have tried thus far:
- Creating an asound.conf file as per this post here http://openelec.tv/forum/128-addons/3861...=276#58575
My playback devices return with this in command line
So my asound.conf file looked like this:
This has the effect of changing the "Default" option in System Settings > Audio Output > Audio Output Device to the Default (HDMI device). Neither leaving it as the new default nor switching to the analog option have any effect on sound in Mednafen.
I played around with this for a while based on other posts I found here. This thread http://forum.xbmc.org/showthread.php?tid=145430 helped me understand a bit more what each of the sections of the asound.conf file mean, and I managed to trim his massive script down to a much smaller one that I thought might serve my purposes:
This changed the audio output device in settings back to Default (HDA Intel MID STAC92xx Analog) (instead of the default being the HDMI device), but did nothing for Mednafen.
I also tried messing around with .asoundrc, but it never seemed to do much of anything. I guarantee there are combinations of things I didn't try though.
-Changing the launch.sh and mednafen-09x.cfg files
I'm not certain how these work, but I'm pretty sure that when launch.sh runs (when you first run the program), it creates at least one cfg file (I think the one in storage/xbmc/userdata/addon_data/emulator.mednafen/, the one in storage/.xbmc/addons/emulator.mednafen/bin/.mednafen/ never seems to update? ), so I tried updating the launch.sh script with this
For sound.driver, I tried switching it back and forth between sdl (which is what it started as) and alsa, but no effect (I'm honestly not even sure what the difference is). I also made this change in the 2 .cfg files, just in case, but still no effect. Based on some other advice I found on here, I also tried
and the corresponding changes in the .cfg fils, but still no sound. I feel like I've tried just about everything at this point. Any input would be much appreciated.
Everything else plays sound just fine, but when I try to launch a ROM in Mednafen (via Rom Collection Browser), there is no sound. I am currently using version 0.6 of Mednafen as the video was not working in 0.9 (because I possibly have a 64bit computer? Got a bit confused here but didn't pursue it because it worked). I've read other threads about this, but most are looking for ways to set-up audio to come out of two separte surround sound speaker systems and the like, I'm just interested in a super simple 2 channel analog audio output setup.
Things I have tried thus far:
- Creating an asound.conf file as per this post here http://openelec.tv/forum/128-addons/3861...=276#58575
My playback devices return with this in command line
Code:
card 0: MID [HDA Intel MID], device 0: STAC92xx Analog [STAC92xx Analog]
Subdevices: 1/1
Subdevice #0: subdevice #0
card 0: MID [HDA Intel MID], device 3: HDMI 0 [HDMI 0]
Subdevices: 1/1
Subdevice #0: subdevice #0
So my asound.conf file looked like this:
Code:
pcm.!default {
type plug
slave {
pcm "both"
}
}
pcm.both {
type route
slave {
pcm multi
channels 4
}
ttable.0.0 1.0
ttable.1.1 1.0
ttable.0.2 1.0
ttable.1.3 1.0
}
pcm.multi {
type multi
slaves.a {
pcm "hdmi_hw"
channels 2
}
slaves.b {
pcm "analog_hw"
channels 2
}
bindings.0.slave a
bindings.0.channel 0
bindings.1.slave a
bindings.1.channel 1
bindings.2.slave b
bindings.2.channel 0
bindings.3.slave b
bindings.3.channel 1
}
pcm.hdmi_hw {
type dmix
ipc_key 1001
slave {
pcm "hw:0,3"
period_time 0
period_size 512
buffer_size 2048
}
}
pcm.hdmi_formatted {
type plug
slave {
pcm hdmi_hw
rate 48000
channels 2
}
}
pcm.hdmi_complete {
type softvol
slave.pcm hdmi_formatted
control.name hdmi_volume
control.card 1
}
pcm.analog_hw {
type dmix
ipc_key 1000
slave {
pcm "hw:0,0"
period_time 0
period_size 512
buffer_size 2048
}
}
This has the effect of changing the "Default" option in System Settings > Audio Output > Audio Output Device to the Default (HDMI device). Neither leaving it as the new default nor switching to the analog option have any effect on sound in Mednafen.
I played around with this for a while based on other posts I found here. This thread http://forum.xbmc.org/showthread.php?tid=145430 helped me understand a bit more what each of the sections of the asound.conf file mean, and I managed to trim his massive script down to a much smaller one that I thought might serve my purposes:
Code:
pcm.!default {
type plug
slave {
pcm "analog"
}
}
pcm.analog {
type hw
card 0
device 0
channels 2
}
This changed the audio output device in settings back to Default (HDA Intel MID STAC92xx Analog) (instead of the default being the HDMI device), but did nothing for Mednafen.
I also tried messing around with .asoundrc, but it never seemed to do much of anything. I guarantee there are combinations of things I didn't try though.
-Changing the launch.sh and mednafen-09x.cfg files
I'm not certain how these work, but I'm pretty sure that when launch.sh runs (when you first run the program), it creates at least one cfg file (I think the one in storage/xbmc/userdata/addon_data/emulator.mednafen/, the one in storage/.xbmc/addons/emulator.mednafen/bin/.mednafen/ never seems to update? ), so I tried updating the launch.sh script with this
Code:
ADDON_CMD="./mednafen -sound.driver alsa -sound.device plughw:0,0
For sound.driver, I tried switching it back and forth between sdl (which is what it started as) and alsa, but no effect (I'm honestly not even sure what the difference is). I also made this change in the 2 .cfg files, just in case, but still no effect. Based on some other advice I found on here, I also tried
Code:
ADDON_CMD="./mednafen -sound.driver default -sound.device sexyal-literal-default
and the corresponding changes in the .cfg fils, but still no sound. I feel like I've tried just about everything at this point. Any input would be much appreciated.