Announcement

Collapse
No announcement yet.

Announcement

Collapse
No announcement yet.

Retroarch addon for Openelec on MK808B+ and MXQ

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Originally posted by 2ami View Post
    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.


    Comment


      Originally posted by scottmu64 View Post
      To install my build:

      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
      Last edited by credin; 11-22-2016, 22:34.

      Comment


        Originally posted by 2ami View Post
        @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:

        1) Enable log verbosity:
        Code:
        sed -i 's:log_verbosity = .*:log_verbosity = "true":g' /storage/.kodi/userdata/addon_data/emulator.tools.retroarch/config/retroarch.cfg
        
        sed -i 's:libretro_log_level = .*:libretro_log_level = "0":g' /storage/.kodi/userdata/addon_data/emulator.tools.retroarch/config/retroarch.cfg
        
        echo 'libretro_log_level = "0"' >> /storage/.kodi/userdata/addon_data/emulator.tools.retroarch/config/retroarch.cfg
        2) Run retroarch manually:
        Code:
        cd /storage/.kodi/addons/emulator.tools.retroarch/bin
        ./retroarch.start
        Please post the output from your ssh session

        Comment


          Originally posted by JoKeRz View Post

          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

          Originally posted by JoKeRz View Post
          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.

          tried also both alsathread" or "alsa" even "oss" > still no sound, i don't know audio_out_rate effect so not touching that default value

          Originally posted by JoKeRz View Post
          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:

          1) Enable log verbosity:
          Code:
          sed -i 's:log_verbosity = .*:log_verbosity = "true":g' /storage/.kodi/userdata/addon_data/emulator.tools.retroarch/config/retroarch.cfg
          
          sed -i 's:libretro_log_level = .*:libretro_log_level = "0":g' /storage/.kodi/userdata/addon_data/emulator.tools.retroarch/config/retroarch.cfg
          
          echo 'libretro_log_level = "0"' >> /storage/.kodi/userdata/addon_data/emulator.tools.retroarch/config/retroarch.cfg
          2) Run retroarch manually:
          Code:
          cd /storage/.kodi/addons/emulator.tools.retroarch/bin
          ./retroarch.start
          Please post the output from your ssh session
          i will post result later, i'm at office now
          thanks alot

          Comment


            here's the output
            Code:
            LibreELEC:~/.kodi/addons/emulator.tools.retroarch/bin # sed -i 's:log_verbosity = .*:log_verbosity = "true":g' /storage/.kodi/userdata
            /addon_data/emulator.tools.retroarch/config/retroarch.cfg
            LibreELEC:~/.kodi/addons/emulator.tools.retroarch/bin # sed -i 's:libretro_log_level = .*:libretro_log_level = "0":g' /storage/.kodi/u
            serdata/addon_data/emulator.tools.retroarch/config/retroarch.cfg
            LibreELEC:~/.kodi/addons/emulator.tools.retroarch/bin # echo 'libretro_log_level = "0"' >> /storage/.kodi/userdata/addon_data/emulator
            .tools.retroarch/config/retroarch.cfg
            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] :: [udev]: Plugged pad: PLAYSTATION(R)3 Controller (0:0) on port #0.
            RetroArch [INFO] :: Autodetect: 125 profiles found
            RetroArch [INFO] :: Autodetect: selected configuration: /storage/.kodi/addons/emulator.tools.retroarch/resources/autoconfig/Sony-PlayStation3-DualShock3-Controller-Bluetooth.cfg
            RetroArch [INFO] :: [udev]: Pad #0 (/dev/input/event5) supports 0 force feedback effects.
            RetroArch [INFO] :: Found joypad driver: "udev".
            RetroArch [INFO] :: ALSA: Using signed 16-bit format.
            RetroArch [ERROR] :: ALSA: Failed to initialize...
            RetroArch [ERROR] :: Failed to initialize audio driver. Will continue without audio.
            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].
            RetroArch [ERROR] :: Failed to start audio driver. Will continue without audio.

            Comment


              2ami

              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?
              Code:
              grep '^audio_' /storage/.kodi/userdata/addon_data/emulator.tools.retroarch/config/retroarch.cfg
              Please post output.

              Lastly, let's check how you hdmi output is mapped by alsa driver by running (note the "-l" and not "-L" parameter):
              Code:
               aplay -l

              Comment


                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].
                here aplay -lowercase
                Code:
                LibreELEC:~/.kodi/addons/emulator.tools.retroarch # aplay -l
                **** List of PLAYBACK Hardware Devices ****
                card 0: AMLM8AUDIO [AML-M8AUDIO], device 0: I2S.38 dummy-0 []
                  Subdevices: 1/1
                  Subdevice #0: subdevice #0
                card 0: AMLM8AUDIO [AML-M8AUDIO], device 1: SPDIF.39 dit-hifi-1 []
                  Subdevices: 1/1
                  Subdevice #0: subdevice #0
                card 0: AMLM8AUDIO [AML-M8AUDIO], device 2: PCM.40 pcm2bt-pcm-2 []
                  Subdevices: 1/1
                  Subdevice #0: subdevice #0
                
                LibreELEC:~ # grep '^audio_' /storage/.kodi/userdata/addon_data/emulator.tools.retroarch/config/retroarch.cfg
                audio_out_rate = "48000"
                audio_driver = "alsathread"
                audio_device = "hw:0,1"
                audio_filter_dir = "default"
                audio_resampler = "sinc"
                audio_rate_control_delta = "0.005000"
                audio_max_timing_skew = "0.040000"
                audio_volume = "-1.000000"
                audio_latency = "64"
                audio_block_frames = "0"
                audio_sync = "true"
                audio_enable = "true"
                audio_mute_enable = "false"
                audio_rate_control = "true"
                audio_dsp_plugin = ""

                Comment


                  Originally posted by 2ami View Post
                  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].
                  here aplay -lowercase
                  Code:
                  LibreELEC:~/.kodi/addons/emulator.tools.retroarch # aplay -l
                  **** List of PLAYBACK Hardware Devices ****
                  card 0: AMLM8AUDIO [AML-M8AUDIO], device 0: I2S.38 dummy-0 []
                  Subdevices: 1/1
                  Subdevice #0: subdevice #0
                  card 0: AMLM8AUDIO [AML-M8AUDIO], device 1: SPDIF.39 dit-hifi-1 []
                  Subdevices: 1/1
                  Subdevice #0: subdevice #0
                  card 0: AMLM8AUDIO [AML-M8AUDIO], device 2: PCM.40 pcm2bt-pcm-2 []
                  Subdevices: 1/1
                  Subdevice #0: subdevice #0
                  
                  LibreELEC:~ # grep '^audio_' /storage/.kodi/userdata/addon_data/emulator.tools.retroarch/config/retroarch.cfg
                  audio_out_rate = "48000"
                  audio_driver = "alsathread"
                  audio_device = "hw:0,1"
                  audio_filter_dir = "default"
                  audio_resampler = "sinc"
                  audio_rate_control_delta = "0.005000"
                  audio_max_timing_skew = "0.040000"
                  audio_volume = "-1.000000"
                  audio_latency = "64"
                  audio_block_frames = "0"
                  audio_sync = "true"
                  audio_enable = "true"
                  audio_mute_enable = "false"
                  audio_rate_control = "true"
                  audio_dsp_plugin = ""
                  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?

                  Code:
                  mkdir -p /storage/temp
                  cd /storage/temp
                  
                  wget "http://www.soundjay.com/nature/river-4.wav"
                  
                  aplay --device="hw:0,0" ./river-4.wav
                  
                  aplay --device="hw:0,1" ./river-4.wav
                  
                  aplay --device="hw:0,2" ./river-4.wav

                  Comment


                    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

                    Comment


                      Originally posted by 2ami View Post
                      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

                      Comment


                        Originally posted by JoKeRz View Post
                        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

                        Comment


                          Originally posted by 2ami View Post
                          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).

                          Comment


                            Originally posted by JoKeRz View Post

                            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!!!"

                            thanks again dude

                            Comment


                              New version of the addon published to repository and available here:

                              What is new:
                              • 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)

                              Comment


                                Originally posted by 2ami View Post

                                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.

                                Comment

                                Working...
                                X