aboutsummaryrefslogtreecommitdiff
path: root/engines/wintermute/Base/BSoundBuffer.h
diff options
context:
space:
mode:
Diffstat (limited to 'engines/wintermute/Base/BSoundBuffer.h')
-rw-r--r--engines/wintermute/Base/BSoundBuffer.h16
1 files changed, 7 insertions, 9 deletions
diff --git a/engines/wintermute/Base/BSoundBuffer.h b/engines/wintermute/Base/BSoundBuffer.h
index 22c4fd63da..f65ea1d40f 100644
--- a/engines/wintermute/Base/BSoundBuffer.h
+++ b/engines/wintermute/Base/BSoundBuffer.h
@@ -31,6 +31,7 @@
#include "engines/wintermute/Base/BBase.h"
+#include "audio/mixer.h"
#include "common/stream.h"
namespace Audio {
@@ -68,8 +69,9 @@ public:
ERRORCODE setPan(float pan);
ERRORCODE setPrivateVolume(int colume);
ERRORCODE setVolume(int colume);
+ void updateVolume();
- void setType(TSoundType Type);
+ void setType(Audio::Mixer::SoundType Type);
ERRORCODE loadFromFile(const char *filename, bool forceReload = false);
void setStreaming(bool streamed, uint32 numBlocks = 0, uint32 blockSize = 0);
@@ -82,19 +84,15 @@ public:
bool _freezePaused;
uint32 _loopStart;
- TSoundType _type;
+ Audio::Mixer::SoundType _type;
bool _looping;
Common::SeekableReadStream *_file;
char *_filename;
bool _streamed;
- int _privateVolume;
-
- /*static void CALLBACK LoopSyncProc(HSYNC handle, uint32 channel, uint32 data, void *user);
- static void CALLBACK FileCloseProc(void *user);
- static QWORD CALLBACK FileLenProc(void *user);
- static uint32 CALLBACK FileReadProc(void *buffer, uint32 length, void *user);
- static BOOL CALLBACK FileSeekProc(QWORD offset, void *user);*/
+ int _privateVolume;
+private:
+ int _volume;
};
} // end of namespace WinterMute