diff options
Diffstat (limited to 'engines/wintermute/Base/BSoundMgr.h')
-rw-r--r-- | engines/wintermute/Base/BSoundMgr.h | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/engines/wintermute/Base/BSoundMgr.h b/engines/wintermute/Base/BSoundMgr.h index 1ae7b7709a..13e3957fce 100644 --- a/engines/wintermute/Base/BSoundMgr.h +++ b/engines/wintermute/Base/BSoundMgr.h @@ -38,24 +38,24 @@ class CBSoundBuffer; class CBSoundMgr : public CBBase {
public:
float posToPan(int x, int y);
- ERRORCODE resumeAll();
- ERRORCODE pauseAll(bool includingMusic = true);
- ERRORCODE cleanup();
+ bool resumeAll();
+ bool pauseAll(bool includingMusic = true);
+ bool cleanup();
//DECLARE_PERSISTENT(CBSoundMgr, CBBase);
byte getMasterVolumePercent();
byte getMasterVolume();
- ERRORCODE setMasterVolume(byte percent);
- ERRORCODE setMasterVolumePercent(byte percent);
+ bool setMasterVolume(byte percent);
+ bool setMasterVolumePercent(byte percent);
byte getVolumePercent(Audio::Mixer::SoundType type);
- ERRORCODE setVolumePercent(Audio::Mixer::SoundType type, byte percent);
- ERRORCODE setVolume(Audio::Mixer::SoundType type, int volume);
+ bool setVolumePercent(Audio::Mixer::SoundType type, byte percent);
+ bool setVolume(Audio::Mixer::SoundType type, int volume);
uint32 _volumeOriginal;
int _volumeMaster;
- ERRORCODE removeSound(CBSoundBuffer *sound);
+ bool removeSound(CBSoundBuffer *sound);
CBSoundBuffer *addSound(const char *filename, Audio::Mixer::SoundType type = Audio::Mixer::kSFXSoundType, bool streamed = false);
- ERRORCODE addSound(CBSoundBuffer *sound, Audio::Mixer::SoundType type = Audio::Mixer::kSFXSoundType);
- ERRORCODE initLoop();
- ERRORCODE initialize();
+ bool addSound(CBSoundBuffer *sound, Audio::Mixer::SoundType type = Audio::Mixer::kSFXSoundType);
+ bool initLoop();
+ bool initialize();
bool _soundAvailable;
CBSoundMgr(CBGame *inGame);
virtual ~CBSoundMgr();
|