VOGONS


Linux/ALSA midi?

Topic actions

First post, by ste

User metadata
Rank Newbie
Rank
Newbie

Love DosBox, no problems other than getting midi working..
When I startt dosbox I get this:
ALSA:Can't subscribe to MIDI port (65:0)
MIDI:Can't open device:alsa with config:.
ALSA:Can't subscribe to MIDI port (65:0)
MIDI:Opened device:none

cat /proc/asound/seq/clients shows this:

Client info
cur clients : 2
peak clients : 3
max clients : 192

Client 0 : "System" [Kernel]
Port 0 : "Timer" (Rwe-)
Port 1 : "Announce" (R-e-)
Connecting To: 63:0
Client 63 : "OSS sequencer" [Kernel]
Port 0 : "Receiver" (-we-)
Connected From: 0:1

I'm not too familiar with midi and alsa.. any ideas?

Resurecting my youth one game at a time

Reply 1 of 4, by prompt

User metadata
Rank Newbie
Rank
Newbie

You don't seem to have any midi driver loaded. Check if ALSA has midi support for your soundcard. If not, you can use either timidity or fluidsynth to simulate midi sound but both need much cpu power.

Reply 2 of 4, by Harekiet

User metadata
Rank DOSBox Author
Rank
DOSBox Author

Might wanna try setting config=63:0 under the midi section in the config file and setting the device=alsa

Reply 3 of 4, by ste

User metadata
Rank Newbie
Rank
Newbie

Yeah, looks like ALSA doesn't support midi on my chip yet. 😒
How do I get timidity to work with dosbox - I can't seem to see anything in the man page or README file. I have timidity all set up and working (as in I can play midi files)

Thanks!

Resurecting my youth one game at a time

Reply 4 of 4, by prompt

User metadata
Rank Newbie
Rank
Newbie

Execute it with "timidity -iA" then it becomes an ALSA server at port 128:0. You have to set the port in the dosbox config file.
note: timidity will be more accurate if it is run as root.