From 47e358cd12dcb2fc044fda26e0c3216519bd1e22 Mon Sep 17 00:00:00 2001 From: Travis Howell Date: Tue, 24 Nov 2009 00:15:10 +0000 Subject: Exclude PCE sound player, from non-16bit color build. svn-id: r46119 --- engines/scumm/player_pce.cpp | 4 ++++ engines/scumm/player_pce.h | 4 ++++ engines/scumm/scumm.cpp | 2 ++ 3 files changed, 10 insertions(+) (limited to 'engines') diff --git a/engines/scumm/player_pce.cpp b/engines/scumm/player_pce.cpp index a476a71197..81f70c283e 100644 --- a/engines/scumm/player_pce.cpp +++ b/engines/scumm/player_pce.cpp @@ -34,6 +34,8 @@ #include #include "player_pce.h" +#ifdef USE_RGB_COLOR + namespace Scumm { // CPU and PSG use the same base clock but with a different divider @@ -753,3 +755,5 @@ int Player_PCE::getMusicTimer() const { } } // End of namespace Scumm + +#endif // USE_RGB_COLOR diff --git a/engines/scumm/player_pce.h b/engines/scumm/player_pce.h index 479ec5c506..c30e1bd8cf 100644 --- a/engines/scumm/player_pce.h +++ b/engines/scumm/player_pce.h @@ -31,6 +31,8 @@ #include "sound/audiostream.h" #include "sound/mixer.h" +#ifdef USE_RGB_COLOR + namespace Scumm { class ScummEngine; @@ -128,4 +130,6 @@ private: } // End of namespace Scumm +#endif // USE_RGB_COLOR + #endif diff --git a/engines/scumm/scumm.cpp b/engines/scumm/scumm.cpp index 8d3c3c0957..309e79b7a0 100644 --- a/engines/scumm/scumm.cpp +++ b/engines/scumm/scumm.cpp @@ -1726,8 +1726,10 @@ void ScummEngine::setupMusic(int midi) { _musicEngine = new Player_V2A(this, _mixer); } else if (_game.platform == Common::kPlatformAmiga && _game.version == 3) { _musicEngine = new Player_V3A(this, _mixer); +#ifdef USE_RGB_COLOR } else if (_game.platform == Common::kPlatformPCEngine && _game.version == 3) { _musicEngine = new Player_PCE(this, _mixer); +#endif } else if (_game.platform == Common::kPlatformAmiga && _game.version <= 4) { _musicEngine = new Player_V4A(this, _mixer); } else if (_game.id == GID_MANIAC && _game.version == 1) { -- cgit v1.2.3