#7920 closed patch
Midi driver interface
Reported by: | SF/chuzwuzza | Owned by: | |
---|---|---|---|
Priority: | normal | Component: | Audio |
Version: | Keywords: | ||
Cc: | Game: |
Description
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)
Change History (5)
by , 23 years ago
Attachment: | mididriver.diff added |
---|
comment:1 by , 23 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 , 23 years ago
Status: | new → closed |
---|
comment:4 by , 6 years ago
Component: | → Audio |
---|
midi driver interface patch