aboutsummaryrefslogtreecommitdiff
path: root/engines/wintermute/Base/BSoundBuffer.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'engines/wintermute/Base/BSoundBuffer.cpp')
-rw-r--r--engines/wintermute/Base/BSoundBuffer.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/engines/wintermute/Base/BSoundBuffer.cpp b/engines/wintermute/Base/BSoundBuffer.cpp
index 92881ab01a..40793efc98 100644
--- a/engines/wintermute/Base/BSoundBuffer.cpp
+++ b/engines/wintermute/Base/BSoundBuffer.cpp
@@ -349,7 +349,7 @@ void CBSoundBuffer::LoopSyncProc(HSYNC handle, uint32 channel, uint32 data, void
//////////////////////////////////////////////////////////////////////////
HRESULT CBSoundBuffer::setPan(float pan) {
if (_stream) {
- g_system->getMixer()->setChannelBalance(*_handle, pan * 127);
+ g_system->getMixer()->setChannelBalance(*_handle, (int8)(pan * 127));
}
return S_OK;
}