Using MIDI in SDL mixer

Could someone PLEASE tell me the status of MIDI in SDL_mixer? I’m racking
my brains here trying to figure out exactly what is supported.

I’ve looked at the configure options, and to me, it seems that there is
support for Timidity (software emulation). What about hardware support
using /dev/sequencer (OSS) or direct ALSA support?

Please, can I get a direct answer on this. Is it possible to play a game
that uses MIDI music and have it sent to hardware through /dev/sequencer
(or /dev/music for that matter)? Must I have Timidity installed?

I have a SB Live which has hardware MIDI, and it sounds a lot better than
Timidity. If it is possible, HOW DO I DO IT?

Thanks,
Steve

And you’ll only get to experience that hardware wavetable MIDI if you’re
using the commercial OSS drivers AFAIK. I’m not aware of any driver
under Linux or BSD that supports wavetable except the commercial OSS
drivers.On Sun, 2003-01-19 at 12:32, Stephen Anthony wrote:

I have a SB Live which has hardware MIDI, and it sounds a lot better than
Timidity. If it is possible, HOW DO I DO IT?

I’ve used the LucasArts emulator ScummVM, and the Sierra emulator FreeSCI.
Both have an option to use OSS (/dev/sequencer) or ALSA hardware MIDI
support. So it shouldn’t be that hard to add that ability to SDL_mixer.
You just have to make sure that a soundfont has been loaded. In fact,
there is even an environment variable for SDL_mixer to use AWE, which is
exactly what I’m looking for (AWE32/64 and SBLive are similar in this
respect). Problem is that it won’t work, at least in ROTT. Hardware
MIDI is working everywhere else (through ALSA and OSS).

What I really want to know is what the ‘enable-native-midi’ option in
SDL_mixer means. I assumed it meant native (as in hardware if available)
support.

SteveOn January 19, 2003 04:43 pm, Shawn wrote:

On Sun, 2003-01-19 at 12:32, Stephen Anthony wrote:

I have a SB Live which has hardware MIDI, and it sounds a lot better
than Timidity. If it is possible, HOW DO I DO IT?

And you’ll only get to experience that hardware wavetable MIDI if
you’re using the commercial OSS drivers AFAIK. I’m not aware of any
driver under Linux or BSD that supports wavetable except the commercial
OSS drivers.

What I really want to know is what the ‘enable-native-midi’ option in
SDL_mixer means. I assumed it meant native (as in hardware if available)
support.

It enables the native_midi_gpl code.

From the README in that directory:
Unfortunately, the code for the native MIDI support on Linux is derived
from source under the GNU General Public License, and not the GNU LGPL.
Therefore, it’s not built by default.

Native Midi support for Linux should work on FreeBSD too ( I can not test it ).

Midi device can be selected with enviroment variable SDL_NATIVE_MUSIC, there can h
ave one of flowing vlues:
GUS - GravisUltrasound
AWE - SoundBlaster AWE32
FM - FreqentionModulation SoundBlaster Compatible
OPL3 - Yamaha OPL/3
EXT - External MIDI port

See ya!
-Sam Lantinga, Software Engineer, Blizzard Entertainment

[snipped]

Yes, I did read this, but I’m not sure if it’s working correctly.

Midi device can be selected with enviroment variable SDL_NATIVE_MUSIC,
there can h ave one of flowing vlues:
GUS - GravisUltrasound
AWE - SoundBlaster AWE32
FM - FreqentionModulation SoundBlaster Compatible
OPL3 - Yamaha OPL/3
EXT - External MIDI port

OK, I selected AWE when playing the newly ported SDL game Rise Of The
Triad (rott). I even downloaded the CVS version and inserted fprintf’s
into the code to see if the AWE code path is being executed (it is). So
either the AWE MIDI subsystem in SDL_mixer doesn’t work, or there is a
bug in ROTT.

I’m going to write a small program that uses SDL_mixer to play a midi and
see what happens. But any info you could provide is appreciated.

SteveOn January 19, 2003 08:34 pm, Sam Lantinga wrote: