Rewire the MIDI subsystem to use drivers selecting from the commandline.

No -DTIMIDITY, etc! Yippie!. Also updated readme.

svn-id: r3743
This commit is contained in:
James Brown 2002-03-14 08:04:21 +00:00
parent ebb30d33b5
commit d0c6bc8f20
10 changed files with 456 additions and 309 deletions

View file

@ -150,9 +150,12 @@ void SoundEngine::unlock() {
}
byte *SoundEngine::findTag(int sound, char *tag, int index) {
byte *ptr = _base_sounds[sound];
byte *ptr = NULL;
int32 size,pos;
if (_base_sounds)
ptr = _base_sounds[sound];
if (ptr==NULL) {
debug(1, "SoundEngine::findTag completely failed finding sound %d", sound);
return 0;
@ -921,7 +924,7 @@ int SoundEngine::initialize(Scumm *scumm, SoundDriver *driver) {
_s = scumm;
_driver = (SOUND_DRIVER_TYPE*)driver;
_master_volume = 127;
if (_music_volume < 1) _music_volume = 60;