Opened 22 years ago

Closed 22 years ago

Last modified 5 years ago

#7920 closed patch

Midi driver interface

Reported by: SF/chuzwuzza Owned by:
Priority: normal Component: Audio
Version: Keywords:
Cc: Game:


This patch is my attempt at making the midi code a little cleaner. It contains all the midi initialisation and actual outputting of midi data to the devices in a new struct called MidiDriver If compiled in windows, the windows midi driver will be used. If not in windows, the user is able to select between the timidity driver, or the sequencer device driver at run time with the options -t or -s respectively. With the sequencer driver, the linux sequencer device (/dev/sequencer) is used to output midi to either the external midi port, or the internal synth. You can select which one by passing a number to the -s option (eg, -s1 for the internal synth).

NOTE: I am a beginner coder =). I have no doubt that this code probably has glaring bugs, or things that will make you go "why did he do that?". I'm learning c++ here =) Also, I have no idea if this *works* in windows. I have tested it in linux with the timidity driver, and the sequencer driver using an external midi device and an internal synth

please make comments with regards to this patch

Ticket imported from: #484202. Ticket imported from: patches/25.

Attachments (1)

mididriver.diff (15.6 KB ) - added by SF/chuzwuzza 22 years ago.
midi driver interface patch

Download all attachments as: .zip

Change History (5)

by SF/chuzwuzza, 22 years ago

Attachment: mididriver.diff added

midi driver interface patch

comment:1 by SF/forceman, 22 years ago

Good work chuz,

No more fiddiling around with snd-card-virmidi or recompiles. ;-) Works great for me now.

- forceman (aka yoda00 on irc)

comment:2 by SF/ender, 22 years ago

Status: newclosed

comment:3 by SF/ender, 22 years ago

Replaced by #484547

comment:4 by digitall, 5 years ago

Component: Audio
Note: See TracTickets for help on using tickets.