libretro / Lakka-LibreELEC

Lakka is a lightweight Linux distribution that transforms a small computer into a full blown game console.
https://www.lakka.tv
1.76k stars 289 forks source link

MIDI not enabled? #628

Closed anothername99 closed 4 years ago

anothername99 commented 5 years ago

When I go into MIDI settings to select a MIDI Out device, I can't select any device. On Windows and desktop Linux it works fine.

gouchi commented 5 years ago

We will have to enable fluidsynth package.

anothername99 commented 5 years ago

Fluidsynth is a software synthesizer. I have MIDI hardware connected through USB MIDI and it works fine with RetroArch in Windows and desktop Linux without Fluidsynth. Only the Linux kernel, ALSA and RetroArch should be needed to make this work.

Also this is functionality that has settings exposed in the GUI (go to Audio -> MIDI and there will be an Input and an Output option), but for some reason a device can't be selected in Lakka. I'm not sure whether the enhancement label is correct.

On desktop Linux it works: https://i.imgur.com/cDB8RaE.png Same PC, same synth, but can't be selected in Lakka.

gouchi commented 5 years ago

I see I was thinking playback directly on the PC.

Did you try to switch audio driver to Alsa not Alsa threaded ?

Thank you.

anothername99 commented 5 years ago

I've tried the audio driver set to ALSA thread, ALSA and null. All give the same result. I am guessing that either the kernel is missing something (perhaps MIDI drivers were stripped out to make LibreELEC/Lakka slimmer?) or there is a problem with ALSA.

gouchi commented 5 years ago

May you try this image ?

If it is still not working try to load those modules modprobe snd-seq-device && modprobe snd-seq-midi

Thank you.

anothername99 commented 5 years ago

With your image, I can now select MIDI IN and MIDI OUT devices. Thank you.

gouchi commented 5 years ago

Thank you I am glad it is working.

You did have to modprobe the module right ?

We will have to enable for the kernel at least

CONFIG_SND_SEQUENCER=m
CONFIG_SND_RAWMIDI_SEQ=m
anothername99 commented 5 years ago

I didn't touch any commands. I wouldn't know how to enter commands in Lakka.

Maybe I should test that playback is actually working (I only saw that selecting the device worked). Could you put in the latest np2kai core? It has MIDI support and would be easy to test. I tried transplanting it into my Lakka setup from a binary from the buildbot but the core wouldn't load.

gouchi commented 5 years ago

Can you try with with this np2kai core build ?

Thank you.

anothername99 commented 5 years ago

Your np2kai build loads and MIDI works in the games that I tried. Thank you.

vol-2 commented 4 years ago

Is it yet possible to enable MT-32 support in Lakka? Preferably via Munt?