aboutsummaryrefslogtreecommitdiff
path: root/engines/kyra/sound_intern.h
diff options
context:
space:
mode:
authorJohannes Schickel2012-11-23 02:50:20 +0100
committerJohannes Schickel2012-11-23 02:50:20 +0100
commitf361a7d624091132d1684907f35b9be693ab38f4 (patch)
tree4c9625abe8b8f31200ced66a8359aaed103ebb37 /engines/kyra/sound_intern.h
parentf5a3260ee8b31c7ff5d63fe8d5ac551cc30d14d5 (diff)
downloadscummvm-rg350-f361a7d624091132d1684907f35b9be693ab38f4.tar.gz
scummvm-rg350-f361a7d624091132d1684907f35b9be693ab38f4.tar.bz2
scummvm-rg350-f361a7d624091132d1684907f35b9be693ab38f4.zip
KYRA: Make Sound::hasSoundFile const again.
Diffstat (limited to 'engines/kyra/sound_intern.h')
-rw-r--r--engines/kyra/sound_intern.h16
1 files changed, 8 insertions, 8 deletions
diff --git a/engines/kyra/sound_intern.h b/engines/kyra/sound_intern.h
index 94f596f402..c5cf2658aa 100644
--- a/engines/kyra/sound_intern.h
+++ b/engines/kyra/sound_intern.h
@@ -64,7 +64,7 @@ public:
void initAudioResourceInfo(int set, void *info);
void selectAudioResourceSet(int set);
- bool hasSoundFile(uint file);
+ bool hasSoundFile(uint file) const;
void loadSoundFile(uint file);
void loadSoundFile(Common::String file);
void loadSfxFile(Common::String file);
@@ -95,7 +95,7 @@ private:
MidiParser *_music;
MidiParser *_sfx[3];
- const SoundResourceInfo_PC *res() {return _resInfo[_currentResourceSet]; }
+ const SoundResourceInfo_PC *res() const {return _resInfo[_currentResourceSet]; }
SoundResourceInfo_PC *_resInfo[3];
int _currentResourceSet;
@@ -122,7 +122,7 @@ public:
void initAudioResourceInfo(int set, void *info);
void selectAudioResourceSet(int set);
- bool hasSoundFile(uint file);
+ bool hasSoundFile(uint file) const;
void loadSoundFile(uint file);
void loadSoundFile(Common::String) {}
@@ -155,7 +155,7 @@ private:
bool _cdaPlaying;
- const SoundResourceInfo_Towns *res() {return _resInfo[_currentResourceSet]; }
+ const SoundResourceInfo_Towns *res() const {return _resInfo[_currentResourceSet]; }
SoundResourceInfo_Towns *_resInfo[3];
int _currentResourceSet;
@@ -176,7 +176,7 @@ public:
void process() {}
void initAudioResourceInfo(int set, void *info);
void selectAudioResourceSet(int set);
- bool hasSoundFile(uint file);
+ bool hasSoundFile(uint file) const;
void loadSoundFile(uint file);
void loadSoundFile(Common::String file);
@@ -212,7 +212,7 @@ public:
void initAudioResourceInfo(int set, void *info);
void selectAudioResourceSet(int set);
- bool hasSoundFile(uint file);
+ bool hasSoundFile(uint file) const;
void loadSoundFile(uint file) {}
void loadSoundFile(Common::String file);
@@ -234,7 +234,7 @@ private:
uint8 *_sfxTrackData;
TownsPC98_AudioDriver *_driver;
- const SoundResourceInfo_TownsPC98V2 *res() {return _resInfo[_currentResourceSet]; }
+ const SoundResourceInfo_TownsPC98V2 *res() const {return _resInfo[_currentResourceSet]; }
SoundResourceInfo_TownsPC98V2 *_resInfo[3];
int _currentResourceSet;
};
@@ -329,7 +329,7 @@ public:
void initAudioResourceInfo(int set, void *info);
void selectAudioResourceSet(int set);
- bool hasSoundFile(uint file);
+ bool hasSoundFile(uint file) const;
void loadSoundFile(uint file);
void loadSoundFile(Common::String) {}