I will add a wrapper for that (currently NULL driver)
svn-id: r8526
This commit is contained in:
parent
d2bb0149d3
commit
d120ea093f
2 changed files with 2 additions and 11 deletions
|
@ -528,7 +528,7 @@ bool GameDetector::isMusicDriverAvailable(int drv) {
|
|||
switch(drv) {
|
||||
case MD_AUTO:
|
||||
case MD_NULL: return true;
|
||||
#ifndef __PALM_OS__ // not avalaible on palmos : Clie use only ADPCM data and cannot be converted on the fly, may be possible on TT ?
|
||||
#ifndef __PALM_OS__ // don't show it on palmos
|
||||
case MD_ADLIB: return true;
|
||||
#else
|
||||
case MD_YPA1: return true;
|
||||
|
@ -627,13 +627,11 @@ int GameDetector::detectMain() {
|
|||
* and the game is one of those that want adlib as
|
||||
* default, OR if the game is an older game that doesn't
|
||||
* support anything else anyway. */
|
||||
#ifndef __PALM_OS__ // currently adlib is not supported on PalmOS
|
||||
if ((_game.adlib & VersionSettings::ADLIB_ALWAYS) ||
|
||||
((_game.adlib & VersionSettings::ADLIB_PREFERRED) && _midi_driver == MD_AUTO)) {
|
||||
_midi_driver = MD_ADLIB;
|
||||
_use_adlib = true;
|
||||
}
|
||||
#endif
|
||||
|
||||
if (!_gameDataPath) {
|
||||
warning("No path was provided. Assuming the data files are in the current directory");
|
||||
|
@ -708,13 +706,12 @@ MidiDriver *GameDetector::createMidi() {
|
|||
|
||||
switch(drv) {
|
||||
case MD_NULL: return MidiDriver_NULL_create();
|
||||
#ifndef __PALM_OS__
|
||||
// In the case of Adlib, we won't specify anything.
|
||||
// IMuse is designed to set up its own Adlib driver
|
||||
// if need be, and we only have to specify a native
|
||||
// driver.
|
||||
case MD_ADLIB: _use_adlib = true; return NULL;
|
||||
#else
|
||||
#if defined(__PALM_OS__)
|
||||
case MD_YPA1: return MidiDriver_YamahaPa1_create();
|
||||
#endif
|
||||
#if defined(WIN32) && !defined(_WIN32_WCE)
|
||||
|
|
|
@ -74,7 +74,6 @@ MidiDriver *IMuseInternal::getMidiDriver() {
|
|||
|
||||
if (_midi_native) {
|
||||
driver = _midi_native;
|
||||
#if !defined(__PALM_OS__) // Adlib not supported on PalmOS
|
||||
} else {
|
||||
// Route it through Adlib anyway.
|
||||
if (!_midi_adlib) {
|
||||
|
@ -82,7 +81,6 @@ MidiDriver *IMuseInternal::getMidiDriver() {
|
|||
initMidiDriver (_midi_adlib);
|
||||
}
|
||||
driver = _midi_adlib;
|
||||
#endif
|
||||
}
|
||||
|
||||
return driver;
|
||||
|
@ -184,7 +182,6 @@ MidiDriver *IMuseInternal::getBestMidiDriver (int sound) {
|
|||
if (isGM (sound)) {
|
||||
if (_midi_native) {
|
||||
driver = _midi_native;
|
||||
#if !defined(__PALM_OS__) // Adlib not supported on PalmOS
|
||||
} else {
|
||||
// Route it through Adlib anyway.
|
||||
if (!_midi_adlib) {
|
||||
|
@ -192,16 +189,13 @@ MidiDriver *IMuseInternal::getBestMidiDriver (int sound) {
|
|||
initMidiDriver (_midi_adlib);
|
||||
}
|
||||
driver = _midi_adlib;
|
||||
#endif
|
||||
}
|
||||
#if !defined(__PALM_OS__) // Adlib not supported on PalmOS
|
||||
} else {
|
||||
if (!_midi_adlib && (_enable_multi_midi || !_midi_native)) {
|
||||
_midi_adlib = MidiDriver_ADLIB_create();
|
||||
initMidiDriver (_midi_adlib);
|
||||
}
|
||||
driver = _midi_adlib;
|
||||
#endif
|
||||
}
|
||||
return driver;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue