If this is your first visit, be sure to
check out the FAQ by clicking the
link above. You may have to register
before you can post: click the register link above to proceed. To start viewing messages,
select the forum that you want to visit from the selection below.
is it the correct setting in retroarch.cfg ?
audio_device="sysdefault:CARD=AMLM8AUDIO"
thanks in advance for anyone that can shed me some light
For our devices (as well as S905(X) ones) to get audio ou tof HDM you need to have this in the config:
Code:
audio_device=hw:0,1
The version of the addon I created forces that setting every time you start retroarch using retroarch.sh or retroarch.start directly. So I wonder why in your case you have another value in here.... How are you launching retroarch? Do you use a custom wrapper script to call retroarch binary?
Also, the way you stop kodi plays a role on the sound. In my experience, only when I choose to "Stop Kodi process..." (option on retroarch addon settings) I could get sound. The other option to pause kodi did not give me any emulation sound.
1) Add 'http://mxqproject.com/files/repo' as source in Kodi.
2) Go to Install from zip, select the source we just made, select repository.themxqproject directory then select the zip file 'repository.mxqproject.zip'
3) Go to Install from repository and select the repo we just installed
4) Select Program add-ons and install the wizard.
5) Open the wizard and make sure you select the gaming build not the regular one (unless you feel like taking a look at that also)
6) Just let it download and extract then it will instruct you to allow it to force reset Kodi.
7) Enjoy!
Thank you @scottmu64 for this awesome build. Can you play the rom Street fighter 3 third strike downloaded from archive.org?? Every time I try to run it, IARL just close
Another question, Is possible to not download a rom that was downloaded previously?? I set this option on IARL but it always download the rom no matter what. Thanks in advance
[EDIT] NEVER mind the "Don't redownload roms" problem, I saw the code and it checks if a save file for the rom exists, as I havent done any save yet, it will always redownload the rom, so I just have to make a save and everything goes well. But I can't run the SF 3 rom from archive.org yet
@JoKeRzBoX I'm totally lost configuring audio, everytime i select audio device in setting no matter what option in there the audio still muted, and after restart the audio device always return to hw:0,1
here's my aplay -L
LibreELEC:~ # aplay -L
null
Discard all samples (playback) or generate zero samples (capture)
default:CARD=AMLM8AUDIO
AML-M8AUDIO,
Default Audio Device
sysdefault:CARD=AMLM8AUDIO
AML-M8AUDIO,
Default Audio Device
hdmi:CARD=AMLM8AUDIO,DEV=0
AML-M8AUDIO,
HDMI Audio Output
hope you could point me to the right direction, thanks
As far as I know, all of our devices based on S805 or S905(X) will need to use audio_device as hw:0,1. Since in retroarch menu there is no such value, in case you change there to any other value you would not be able to set that value back to hw:0,1 unless you manually edit the retroarch.cfg file. For that reason my addon is forcing that value every time you start retroarch (so the behavior you noticed is expected and intentional).
Now, it seems weird that audio does not work with your device using hw:0,1. Can you confirm you have this setting currectly configured in the addon settings? Pause Kodi process (keeps it in mem) and resumes it after
Another things I empirically verified:
audio_out_rate has to be set to "48000" (no other value will work)
audio_driver has to be set to either "alsathread" or "alsa"
Please make sure you follow those in the addon settings as well and test again.
If that still does not work, please access your box via ssh and start retroarch manually with log enabled so we can see the messages. Follow these steps:
As far as I know, all of our devices based on S805 or S905(X) will need to use audio_device as hw:0,1. Since in retroarch menu there is no such value, in case you change there to any other value you would not be able to set that value back to hw:0,1 unless you manually edit the retroarch.cfg file. For that reason my addon is forcing that value every time you start retroarch (so the behavior you noticed is expected and intentional).
Now, it seems weird that audio does not work with your device using hw:0,1. Can you confirm you have this setting currectly configured in the addon settings? Pause Kodi process (keeps it in mem) and resumes it after
i have tried both, pause kodi or stop kodi > no sound
If that still does not work, please access your box via ssh and start retroarch manually with log enabled so we can see the messages. Follow these steps:
Ok, so it is failing to initialize the audio driver:
Code:
RetroArch [ERROR] :: ALSA: Failed to initialize...
RetroArch [ERROR] :: Failed to initialize audio driver. Will continue without audio.
...
RetroArch [ERROR] :: Failed to start audio driver. Will continue without audio.
Let's double check your settings. Can you please run these from SSH?
oopss, my bad, i think i have mod something in setting-default.xml to trial and error attempt
audio_device="sysdefault:CARD=AMLM8AUDIO", i'm sorry
here's the log with all setting back to default but still no sound (confirmed that rom has
audio)
Code:
LibreELEC:~/.kodi/addons/emulator.tools.retroarch/bin # ./retroarch.start
RetroArch [INFO] :: Resetting undo buffers.
RetroArch [INFO] :: Environ SET_PIXEL_FORMAT: RGB565.
RetroArch [INFO] :: Version of libretro API: 1
RetroArch [INFO] :: Compiled against API: 1
RetroArch [INFO] :: Set audio input rate to: 29970.03 Hz.
RetroArch [INFO] :: Found shader "/media/Storage/.config/retroarch/shaders/retroarch.glslp"
RetroArch [INFO] :: Video @ fullscreen
RetroArch [INFO] :: Starting threaded video driver ...
RetroArch [INFO] :: [EGL]: EGL version: 1.4
RetroArch [INFO] :: Found GL context: mali-fbdev
RetroArch [INFO] :: Detecting screen resolution 0x0.
RetroArch [INFO] :: [EGL]: Current context: 0x40000001.
RetroArch [INFO] :: [GL]: Vendor: ARM, Renderer: Mali-450 MP.
RetroArch [INFO] :: [GL]: Version: OpenGL ES 2.0.
RetroArch [INFO] :: GL: Using resolution 1920x1080
RetroArch [INFO] :: [GL]: Default shader backend found: glsl.
RetroArch [INFO] :: [Shader driver]: Using GLSL shader backend.
RetroArch [WARN] :: [GL]: Stock GLSL shaders will be used.
RetroArch [INFO] :: Found GLSL vertex shader.
RetroArch [INFO] :: Found GLSL fragment shader.
RetroArch [INFO] :: Linking GLSL program.
RetroArch [INFO] :: Found GLSL vertex shader.
RetroArch [INFO] :: Found GLSL fragment shader.
RetroArch [INFO] :: Linking GLSL program.
RetroArch [INFO] :: Found GLSL vertex shader.
RetroArch [INFO] :: Found GLSL fragment shader.
RetroArch [INFO] :: Linking GLSL program.
RetroArch [INFO] :: Found GLSL vertex shader.
RetroArch [INFO] :: Found GLSL fragment shader.
RetroArch [INFO] :: Linking GLSL program.
RetroArch [INFO] :: Found GLSL vertex shader.
RetroArch [INFO] :: Found GLSL fragment shader.
RetroArch [INFO] :: Linking GLSL program.
RetroArch [INFO] :: [GL]: Using 4 textures.
RetroArch [INFO] :: [GL]: Loaded 1 program(s).
RetroArch [INFO] :: Using font rendering backend: freetype.
RetroArch [INFO] :: Graphics driver did not initialize an input driver. Attempting to pick a
suitable driver.
RetroArch [INFO] :: [udev] Adding device /dev/input/event3 as type ID_INPUT_KEYBOARD.
RetroArch [INFO] :: [udev] Adding device /dev/input/event0 as type ID_INPUT_KEYBOARD.
RetroArch [INFO] :: [udev] Adding device /dev/input/mouse0 as type ID_INPUT_KEYBOARD.
RetroArch [INFO] :: [udev] Adding device /dev/input/event0 as type ID_INPUT_MOUSE.
RetroArch [INFO] :: [udev] Adding device /dev/input/mouse0 as type ID_INPUT_MOUSE.
RetroArch [INFO] :: Found joypad driver: "udev".
RetroArch [INFO] :: ALSA: Using signed 16-bit format.
RetroArch [INFO] :: ALSA: Period size: 512 frames
RetroArch [INFO] :: ALSA: Buffer size: 1536 frames
RetroArch [INFO] :: Found menu display driver: "menu_display_gl".
RetroArch [INFO] :: Using font rendering backend: freetype.
RetroArch [INFO] :: Using font rendering backend: freetype.
RetroArch [WARN] :: Input device ID 5 is unknown to this libretro implementation. Using
RETRO_DEVICE_JOYPAD.
RetroArch [INFO] :: SRAM will not be saved.
RetroArch [INFO] :: Loading history file:
[/storage/.kodi/userdata/addon_data/emulator.tools.retroarch/config/content_history.lpl].
RetroArch [INFO] :: Loading history file:
[/storage/.kodi/userdata/addon_data/emulator.tools.retroarch/config/content_music_history.lpl].
RetroArch [INFO] :: Loading history file:
[/storage/.kodi/userdata/addon_data/emulator.tools.retroarch/config/content_video_history.lpl].
RetroArch [INFO] :: Loading history file:
[/storage/.kodi/userdata/addon_data/emulator.tools.retroarch/config/content_image_history.lpl].
oopss, my bad, i think i have mod something in setting-default.xml to trial and error attempt
audio_device="sysdefault:CARD=AMLM8AUDIO", i'm sorry
here's the log with all setting back to default but still no sound (confirmed that rom has
audio)
Code:
LibreELEC:~/.kodi/addons/emulator.tools.retroarch/bin # ./retroarch.start
RetroArch [INFO] :: Resetting undo buffers.
RetroArch [INFO] :: Environ SET_PIXEL_FORMAT: RGB565.
RetroArch [INFO] :: Version of libretro API: 1
RetroArch [INFO] :: Compiled against API: 1
RetroArch [INFO] :: Set audio input rate to: 29970.03 Hz.
RetroArch [INFO] :: Found shader "/media/Storage/.config/retroarch/shaders/retroarch.glslp"
RetroArch [INFO] :: Video @ fullscreen
RetroArch [INFO] :: Starting threaded video driver ...
RetroArch [INFO] :: [EGL]: EGL version: 1.4
RetroArch [INFO] :: Found GL context: mali-fbdev
RetroArch [INFO] :: Detecting screen resolution 0x0.
RetroArch [INFO] :: [EGL]: Current context: 0x40000001.
RetroArch [INFO] :: [GL]: Vendor: ARM, Renderer: Mali-450 MP.
RetroArch [INFO] :: [GL]: Version: OpenGL ES 2.0.
RetroArch [INFO] :: GL: Using resolution 1920x1080
RetroArch [INFO] :: [GL]: Default shader backend found: glsl.
RetroArch [INFO] :: [Shader driver]: Using GLSL shader backend.
RetroArch [WARN] :: [GL]: Stock GLSL shaders will be used.
RetroArch [INFO] :: Found GLSL vertex shader.
RetroArch [INFO] :: Found GLSL fragment shader.
RetroArch [INFO] :: Linking GLSL program.
RetroArch [INFO] :: Found GLSL vertex shader.
RetroArch [INFO] :: Found GLSL fragment shader.
RetroArch [INFO] :: Linking GLSL program.
RetroArch [INFO] :: Found GLSL vertex shader.
RetroArch [INFO] :: Found GLSL fragment shader.
RetroArch [INFO] :: Linking GLSL program.
RetroArch [INFO] :: Found GLSL vertex shader.
RetroArch [INFO] :: Found GLSL fragment shader.
RetroArch [INFO] :: Linking GLSL program.
RetroArch [INFO] :: Found GLSL vertex shader.
RetroArch [INFO] :: Found GLSL fragment shader.
RetroArch [INFO] :: Linking GLSL program.
RetroArch [INFO] :: [GL]: Using 4 textures.
RetroArch [INFO] :: [GL]: Loaded 1 program(s).
RetroArch [INFO] :: Using font rendering backend: freetype.
RetroArch [INFO] :: Graphics driver did not initialize an input driver. Attempting to pick a
suitable driver.
RetroArch [INFO] :: [udev] Adding device /dev/input/event3 as type ID_INPUT_KEYBOARD.
RetroArch [INFO] :: [udev] Adding device /dev/input/event0 as type ID_INPUT_KEYBOARD.
RetroArch [INFO] :: [udev] Adding device /dev/input/mouse0 as type ID_INPUT_KEYBOARD.
RetroArch [INFO] :: [udev] Adding device /dev/input/event0 as type ID_INPUT_MOUSE.
RetroArch [INFO] :: [udev] Adding device /dev/input/mouse0 as type ID_INPUT_MOUSE.
RetroArch [INFO] :: Found joypad driver: "udev".
RetroArch [INFO] :: ALSA: Using signed 16-bit format.
RetroArch [INFO] :: ALSA: Period size: 512 frames
RetroArch [INFO] :: ALSA: Buffer size: 1536 frames
RetroArch [INFO] :: Found menu display driver: "menu_display_gl".
RetroArch [INFO] :: Using font rendering backend: freetype.
RetroArch [INFO] :: Using font rendering backend: freetype.
RetroArch [WARN] :: Input device ID 5 is unknown to this libretro implementation. Using
RETRO_DEVICE_JOYPAD.
RetroArch [INFO] :: SRAM will not be saved.
RetroArch [INFO] :: Loading history file:
[/storage/.kodi/userdata/addon_data/emulator.tools.retroarch/config/content_history.lpl].
RetroArch [INFO] :: Loading history file:
[/storage/.kodi/userdata/addon_data/emulator.tools.retroarch/config/content_music_history.lpl].
RetroArch [INFO] :: Loading history file:
[/storage/.kodi/userdata/addon_data/emulator.tools.retroarch/config/content_video_history.lpl].
RetroArch [INFO] :: Loading history file:
[/storage/.kodi/userdata/addon_data/emulator.tools.retroarch/config/content_image_history.lpl].
All seems fine with config and no error on Retroarch startup related to alsa driver anymore.
Let's try to play something on all 3 audio devices you have just to rule out if alsa sound output is working. Can you run these and report which one(s) play the river sound on your tv?
i hear sound on hw:0,0
hw0,1 > resource busy
hw0,2 > no sound on tv
somehow using this command i can hear the sound
Code:
aplay -vv --device="hw:0,0" river-4.wav
You may be getting hw0,1 > resource busy if you have kodi running which could be having exclusive access to the audio device. Try again to play the sound on hw0,1 after you stop kodi by running this on ssh:
Code:
systemctl stop kodi
Also, you can try to manually force to use hw0,0 just to see if you get sound by running this (bypassing retroarch.start script): Open menu
Code:
sed -i 's@audio_device = .*@audio_device = "hw:0,0"@g' /storage/.kodi/userdata/addon_data/emulator.tools.retroarch/config/retroarch.cfg
cd /storage/.kodi/addons/emulator.tools.retroarch/bin/
./retroarch_mod -c /storage/.kodi/userdata/addon_data/emulator.tools.retroarch/config/retroarch.cfg --menu
Open a ROM directly (example for Picodrive Sega Genesis emulator):
Code:
sed -i 's@audio_device = .*@audio_device = "hw:0,0"@g' /storage/.kodi/userdata/addon_data/emulator.tools.retroarch/config/retroarch.cfg
cd /storage/.kodi/addons/emulator.tools.retroarch/bin/
./retroarch_mod -c /storage/.kodi/userdata/addon_data/emulator.tools.retroarch/config/retroarch.cfg -L /storage/.kodi/addons/emulator.tools.retroarch/lib/libretro/picodrive_libretro.so /storage/emulator/roms/my_genesis_rom.bin
You may be getting hw0,1 > resource busy if you have kodi running which could be having exclusive access to the audio device. Try again to play the sound on hw0,1 after you stop kodi by running this on ssh:
i think i ran those command inside the retroarch menu not in kodi anymore
Also, you can try to manually force to use hw0,0 just to see if you get sound by running this (bypassing retroarch.start script):
Open menu
Code:
sed -i 's@audio_device = .*@audio_device = "hw:0,0"@g' /storage/.kodi/userdata/addon_data/emulator.tools.retroarch/config/retroarch.cfg
cd /storage/.kodi/addons/emulator.tools.retroarch/bin/
./retroarch_mod -c /storage/.kodi/userdata/addon_data/emulator.tools.retroarch/config/retroarch.cfg --menu
yup i can confirm the sound working now , so my hardware is indeed 0,0, how can i set it permanently so i can launch it directly through kodi menu, is it enough changing from retroarch.cfg?
thanks a lot for being patience solving my trouble JoKeRz
i think i ran those command inside the retroarch menu not in kodi anymore
yup i can confirm the sound working now , so my hardware is indeed 0,0, how can i set it permanently so i can launch it directly through kodi menu, is it enough changing from retroarch.cfg?
thanks a lot for being patience solving my trouble JoKeRz
I am glad we found a working solution for your device. I will issue a new version of the retroarch addon shortly which will have that setting possible to be configured in the addon settings. I will post the link to it shortly (if you have my S905 LE repository you will get the update automatically).
I am glad we found a working solution for your device. I will issue a new version of the retroarch addon shortly which will have that setting possible to be configured in the addon settings. I will post the link to it shortly (if you have my S905 LE repository you will get the update automatically).
I believe many user have boxes like mine, it would be really nice to have it selectable through menu, but in current version i noticed in audio setting inside retroarch menu, i can choose all the available hardware by name not by hw:x,x, like mine i can see
1.default:CARD=AMLM8AUDIO,
2.sysdefault:CARD=AMLM8AUDIO
3.hdmi:CARD=AMLM8AUDIO,DEV=0
4.null
but whatever i chose none of them produce audio, even after reboot it always goes back to hw:0,0, but nevertheless now i'm doin it manually just like your instruction, can't wait to kick some butt "shoooryuukennn!!!"
Fixed simple launcher to handle scummvm games properly. To use this feature, make sure game is extracted into a subdirectory named as per "Game Short Name" from http://scummvm.org/compatibility
Added option to configure the audio device for values other than hw:0,1. Now you can chose among hw:0,0 hw:0,1 hw:0,2 and hw:0,3 (hw:0,1 is still the default value)
I believe many user have boxes like mine, it would be really nice to have it selectable through menu, but in current version i noticed in audio setting inside retroarch menu, i can choose all the available hardware by name not by hw:x,x, like mine i can see
1.default:CARD=AMLM8AUDIO,
2.sysdefault:CARD=AMLM8AUDIO
3.hdmi:CARD=AMLM8AUDIO,DEV=0
4.null
but whatever i chose none of them produce audio, even after reboot it always goes back to hw:0,0, but nevertheless now i'm doin it manually just like your instruction, can't wait to kick some butt "shoooryuukennn!!!"
thanks again dude
The new version of the addon allows you to choose the hw:0,N via retroarch addon menu (not retroarch menu). So you need to go to program addons and open settings for Retroarch and set your audio device under "Configuration" tab. That will stick and every time you open retroarch the value will be reapplied. Give it a try and let us know if it works.
We process personal data about users of our site, through the use of cookies and other technologies, to deliver our services, personalize advertising, and to analyze site activity. We may share certain information about our users with our advertising and analytics partners. For additional details, refer to our Privacy Policy.
By clicking "I AGREE" below, you agree to our Privacy Policy and our personal data processing and cookie practices as described therein. You also acknowledge that this forum may be hosted outside your country and you consent to the collection, storage, and processing of your data in the country where this forum is hosted.
Comment