diff options
-rw-r--r-- | engines/wintermute/Base/BSoundBuffer.cpp | 28 | ||||
-rw-r--r-- | engines/wintermute/Base/BSoundBuffer.h | 18 |
2 files changed, 23 insertions, 23 deletions
diff --git a/engines/wintermute/Base/BSoundBuffer.cpp b/engines/wintermute/Base/BSoundBuffer.cpp index 44d51cd360..92881ab01a 100644 --- a/engines/wintermute/Base/BSoundBuffer.cpp +++ b/engines/wintermute/Base/BSoundBuffer.cpp @@ -251,15 +251,15 @@ uint32 CBSoundBuffer::getLength() { //////////////////////////////////////////////////////////////////////////
-void CBSoundBuffer::setType(TSoundType Type) {
- _type = Type;
+void CBSoundBuffer::setType(TSoundType type) {
+ _type = type;
}
//////////////////////////////////////////////////////////////////////////
-HRESULT CBSoundBuffer::setVolume(int Volume) {
+HRESULT CBSoundBuffer::setVolume(int volume) {
if (_stream && _handle) {
- byte vol = (byte)(Volume / 100.f * Audio::Mixer::kMaxChannelVolume);
+ byte vol = (byte)(volume / 100.f * Audio::Mixer::kMaxChannelVolume);
g_system->getMixer()->setChannelVolume(*_handle, vol);
}
return S_OK;
@@ -267,23 +267,23 @@ HRESULT CBSoundBuffer::setVolume(int Volume) { //////////////////////////////////////////////////////////////////////////
-HRESULT CBSoundBuffer::setPrivateVolume(int Volume) {
+HRESULT CBSoundBuffer::setPrivateVolume(int volume) {
#if 0
_privateVolume = Volume;
switch (_type) {
case SOUND_SFX:
- Volume = Game->_soundMgr->_volumeSFX;
+ volume = Game->_soundMgr->_volumeSFX;
break;
case SOUND_SPEECH:
- Volume = Game->_soundMgr->_volumeSpeech;
+ volume = Game->_soundMgr->_volumeSpeech;
break;
case SOUND_MUSIC:
- Volume = Game->_soundMgr->_volumeMusic;
+ volume = Game->_soundMgr->_volumeMusic;
break;
}
#endif
- return setVolume(Volume);
+ return setVolume(volume);
}
@@ -308,7 +308,7 @@ uint32 CBSoundBuffer::getPosition() { //////////////////////////////////////////////////////////////////////////
-HRESULT CBSoundBuffer::setPosition(uint32 Pos) {
+HRESULT CBSoundBuffer::setPosition(uint32 pos) {
warning("CBSoundBuffer::SetPosition - not implemented yet");
#if 0
if (_stream) {
@@ -320,8 +320,8 @@ HRESULT CBSoundBuffer::setPosition(uint32 Pos) { }
//////////////////////////////////////////////////////////////////////////
-HRESULT CBSoundBuffer::setLoopStart(uint32 Pos) {
- _loopStart = Pos;
+HRESULT CBSoundBuffer::setLoopStart(uint32 pos) {
+ _loopStart = pos;
#if 0
if (_stream) {
if (_sync) {
@@ -355,10 +355,10 @@ HRESULT CBSoundBuffer::setPan(float pan) { }
//////////////////////////////////////////////////////////////////////////
-HRESULT CBSoundBuffer::applyFX(TSFXType Type, float Param1, float Param2, float Param3, float Param4) {
+HRESULT CBSoundBuffer::applyFX(TSFXType type, float param1, float param2, float param3, float param4) {
warning("CBSoundBuffer::ApplyFX - not implemented yet");
#if 0
- switch (Type) {
+ switch (type) {
case SFX_ECHO:
break;
diff --git a/engines/wintermute/Base/BSoundBuffer.h b/engines/wintermute/Base/BSoundBuffer.h index 264c5856b2..359c89e59e 100644 --- a/engines/wintermute/Base/BSoundBuffer.h +++ b/engines/wintermute/Base/BSoundBuffer.h @@ -49,7 +49,7 @@ public: HRESULT pause();
- HRESULT play(bool Looping = false, uint32 StartSample = 0);
+ HRESULT play(bool looping = false, uint32 startSample = 0);
HRESULT resume();
HRESULT stop();
bool isPlaying();
@@ -57,23 +57,23 @@ public: void setLooping(bool looping);
uint32 getPosition();
- HRESULT setPosition(uint32 Pos);
+ HRESULT setPosition(uint32 pos);
uint32 getLength();
- HRESULT setLoopStart(uint32 Pos);
+ HRESULT setLoopStart(uint32 pos);
uint32 getLoopStart() const {
return _loopStart;
}
- HRESULT setPan(float Pan);
- HRESULT setPrivateVolume(int Volume);
- HRESULT setVolume(int Volume);
+ HRESULT setPan(float pan);
+ HRESULT setPrivateVolume(int colume);
+ HRESULT setVolume(int colume);
void setType(TSoundType Type);
- HRESULT loadFromFile(const char *filename, bool ForceReload = false);
- void setStreaming(bool Streamed, uint32 NumBlocks = 0, uint32 BlockSize = 0);
- HRESULT applyFX(TSFXType Type, float Param1, float Param2, float Param3, float Param4);
+ HRESULT loadFromFile(const char *filename, bool forceReload = false);
+ void setStreaming(bool streamed, uint32 numBlocks = 0, uint32 blockSize = 0);
+ HRESULT applyFX(TSFXType type, float param1, float param2, float param3, float param4);
//HSTREAM _stream;
//HSYNC _sync;
|