aboutsummaryrefslogtreecommitdiff
path: root/simon
diff options
context:
space:
mode:
authorMax Horn2005-05-11 00:01:44 +0000
committerMax Horn2005-05-11 00:01:44 +0000
commit2de46dc8eb173ca06a107d5353f2209944284115 (patch)
tree2119f03a2883659d2b5fbbc70db31273271370e0 /simon
parent1a615346abab8f234c3dbd1c55e78b179bca9d87 (diff)
downloadscummvm-rg350-2de46dc8eb173ca06a107d5353f2209944284115.tar.gz
scummvm-rg350-2de46dc8eb173ca06a107d5353f2209944284115.tar.bz2
scummvm-rg350-2de46dc8eb173ca06a107d5353f2209944284115.zip
Moved some more stuff to namespace Audio (enough for tonight)
svn-id: r18040
Diffstat (limited to 'simon')
-rw-r--r--simon/sound.cpp26
-rw-r--r--simon/sound.h6
2 files changed, 16 insertions, 16 deletions
diff --git a/simon/sound.cpp b/simon/sound.cpp
index d34371874d..9e302e34d5 100644
--- a/simon/sound.cpp
+++ b/simon/sound.cpp
@@ -47,25 +47,25 @@ public:
BaseSound(Audio::Mixer *mixer, File *file, uint32 base = 0, bool bigendian = false);
BaseSound(Audio::Mixer *mixer, File *file, uint32 *offsets, bool bigendian = false);
virtual ~BaseSound();
- virtual void playSound(uint sound, SoundHandle *handle, byte flags) = 0;
+ virtual void playSound(uint sound, Audio::SoundHandle *handle, byte flags) = 0;
};
class WavSound : public BaseSound {
public:
WavSound(Audio::Mixer *mixer, File *file, uint32 base = 0, bool bigendian = false) : BaseSound(mixer, file, base, bigendian) {};
WavSound(Audio::Mixer *mixer, File *file, uint32 *offsets) : BaseSound(mixer, file, offsets) {};
- void playSound(uint sound, SoundHandle *handle, byte flags);
+ void playSound(uint sound, Audio::SoundHandle *handle, byte flags);
};
class VocSound : public BaseSound {
public:
VocSound(Audio::Mixer *mixer, File *file, uint32 base = 0, bool bigendian = false) : BaseSound(mixer, file, base, bigendian) {};
- void playSound(uint sound, SoundHandle *handle, byte flags);
+ void playSound(uint sound, Audio::SoundHandle *handle, byte flags);
};
class RawSound : public BaseSound {
public:
RawSound(Audio::Mixer *mixer, File *file, uint32 base = 0, bool bigendian = false) : BaseSound(mixer, file, base, bigendian) {};
- void playSound(uint sound, SoundHandle *handle, byte flags);
+ void playSound(uint sound, Audio::SoundHandle *handle, byte flags);
};
BaseSound::BaseSound(Audio::Mixer *mixer, File *file, uint32 base, bool bigendian) {
@@ -119,7 +119,7 @@ BaseSound::~BaseSound() {
delete _file;
}
-void WavSound::playSound(uint sound, SoundHandle *handle, byte flags) {
+void WavSound::playSound(uint sound, Audio::SoundHandle *handle, byte flags) {
if (_offsets == NULL)
return;
@@ -134,7 +134,7 @@ void WavSound::playSound(uint sound, SoundHandle *handle, byte flags) {
_mixer->playInputStream(Audio::Mixer::kSFXSoundType, handle, stream);
}
-void VocSound::playSound(uint sound, SoundHandle *handle, byte flags) {
+void VocSound::playSound(uint sound, Audio::SoundHandle *handle, byte flags) {
if (_offsets == NULL)
return;
@@ -146,7 +146,7 @@ void VocSound::playSound(uint sound, SoundHandle *handle, byte flags) {
_mixer->playRaw(handle, buffer, size, samples_per_sec, flags | Audio::Mixer::FLAG_AUTOFREE);
}
-void RawSound::playSound(uint sound, SoundHandle *handle, byte flags) {
+void RawSound::playSound(uint sound, Audio::SoundHandle *handle, byte flags) {
if (_offsets == NULL)
return;
@@ -163,10 +163,10 @@ void RawSound::playSound(uint sound, SoundHandle *handle, byte flags) {
class MP3Sound : public BaseSound {
public:
MP3Sound(Audio::Mixer *mixer, File *file, uint32 base = 0) : BaseSound(mixer, file, base) {};
- void playSound(uint sound, SoundHandle *handle, byte flags);
+ void playSound(uint sound, Audio::SoundHandle *handle, byte flags);
};
-void MP3Sound::playSound(uint sound, SoundHandle *handle, byte flags)
+void MP3Sound::playSound(uint sound, Audio::SoundHandle *handle, byte flags)
{
if (_offsets == NULL)
return;
@@ -187,10 +187,10 @@ void MP3Sound::playSound(uint sound, SoundHandle *handle, byte flags)
class VorbisSound : public BaseSound {
public:
VorbisSound(Audio::Mixer *mixer, File *file, uint32 base = 0) : BaseSound(mixer, file, base) {};
- void playSound(uint sound, SoundHandle *handle, byte flags);
+ void playSound(uint sound, Audio::SoundHandle *handle, byte flags);
};
-void VorbisSound::playSound(uint sound, SoundHandle *handle, byte flags)
+void VorbisSound::playSound(uint sound, Audio::SoundHandle *handle, byte flags)
{
if (_offsets == NULL)
return;
@@ -211,10 +211,10 @@ void VorbisSound::playSound(uint sound, SoundHandle *handle, byte flags)
class FlacSound : public BaseSound {
public:
FlacSound(Audio::Mixer *mixer, File *file, uint32 base = 0) : BaseSound(mixer, file, base) {};
- void playSound(uint sound, SoundHandle *handle, byte flags);
+ void playSound(uint sound, Audio::SoundHandle *handle, byte flags);
};
-void FlacSound::playSound(uint sound, SoundHandle *handle, byte flags)
+void FlacSound::playSound(uint sound, Audio::SoundHandle *handle, byte flags)
{
if (_offsets == NULL)
return;
diff --git a/simon/sound.h b/simon/sound.h
index 75efe46cb5..641d90d2d0 100644
--- a/simon/sound.h
+++ b/simon/sound.h
@@ -44,9 +44,9 @@ private:
uint32 *_offsets;
uint16 _lastVoiceFile;
- SoundHandle _voiceHandle;
- SoundHandle _effectsHandle;
- SoundHandle _ambientHandle;
+ Audio::SoundHandle _voiceHandle;
+ Audio::SoundHandle _effectsHandle;
+ Audio::SoundHandle _ambientHandle;
bool _hasEffectsFile;
bool _hasVoiceFile;