From 356403233047e260e34887ba0144892be322f472 Mon Sep 17 00:00:00 2001 From: Ori Avtalion Date: Thu, 14 Apr 2016 16:10:21 +0300 Subject: JANITORIAL: Reduce audio header dependencies --- engines/mads/nebular/sound_nebular.cpp | 9 ++++----- engines/mads/nebular/sound_nebular.h | 12 ++++++++---- engines/mads/sound.cpp | 6 ++++-- engines/mads/sound.h | 15 ++++++++++++--- 4 files changed, 28 insertions(+), 14 deletions(-) (limited to 'engines/mads') diff --git a/engines/mads/nebular/sound_nebular.cpp b/engines/mads/nebular/sound_nebular.cpp index 4c360b23d5..5f71c99a94 100644 --- a/engines/mads/nebular/sound_nebular.cpp +++ b/engines/mads/nebular/sound_nebular.cpp @@ -20,16 +20,15 @@ * */ -#include "audio/audiostream.h" #include "audio/fmopl.h" -#include "audio/decoders/raw.h" #include "common/algorithm.h" -#include "common/debug.h" #include "common/md5.h" -#include "common/memstream.h" -#include "mads/sound.h" #include "mads/nebular/sound_nebular.h" +namespace Audio { +class Mixer; +} + namespace MADS { namespace Nebular { diff --git a/engines/mads/nebular/sound_nebular.h b/engines/mads/nebular/sound_nebular.h index 2b80b08d89..a9e1493109 100644 --- a/engines/mads/nebular/sound_nebular.h +++ b/engines/mads/nebular/sound_nebular.h @@ -27,8 +27,14 @@ #include "common/file.h" #include "common/mutex.h" #include "common/queue.h" -#include "audio/audiostream.h" -#include "audio/mixer.h" + +namespace Audio { +class Mixer; +} + +namespace Common { +class SeekableReadStream; +} namespace OPL { class OPL; @@ -36,8 +42,6 @@ class OPL; namespace MADS { -class SoundManager; - namespace Nebular { class ASound; diff --git a/engines/mads/sound.cpp b/engines/mads/sound.cpp index c96fd01882..5f2c9aca56 100644 --- a/engines/mads/sound.cpp +++ b/engines/mads/sound.cpp @@ -20,14 +20,16 @@ * */ -#include "audio/audiostream.h" #include "audio/fmopl.h" -#include "audio/decoders/raw.h" #include "common/memstream.h" #include "mads/sound.h" #include "mads/mads.h" #include "mads/nebular/sound_nebular.h" +namespace Audio { +class Mixer; +} + namespace MADS { SoundManager::SoundManager(MADSEngine *vm, Audio::Mixer *mixer) { diff --git a/engines/mads/sound.h b/engines/mads/sound.h index 2c4de6f21d..9674d4198d 100644 --- a/engines/mads/sound.h +++ b/engines/mads/sound.h @@ -25,12 +25,21 @@ #include "common/scummsys.h" #include "common/queue.h" -#include "audio/audiostream.h" -#include "audio/mixer.h" -#include "mads/nebular/sound_nebular.h" + +namespace Audio { +class Mixer; +} + +namespace OPL { +class OPL; +} namespace MADS { +namespace Nebular { +class ASound; +} + class MADSEngine; class SoundManager { -- cgit v1.2.3