diff options
Diffstat (limited to 'engines/wintermute/Base/BSoundBuffer.cpp')
-rw-r--r-- | engines/wintermute/Base/BSoundBuffer.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/engines/wintermute/Base/BSoundBuffer.cpp b/engines/wintermute/Base/BSoundBuffer.cpp index a8c41cd022..35471bd4d9 100644 --- a/engines/wintermute/Base/BSoundBuffer.cpp +++ b/engines/wintermute/Base/BSoundBuffer.cpp @@ -260,7 +260,7 @@ void CBSoundBuffer::SetType(TSoundType Type) { //////////////////////////////////////////////////////////////////////////
HRESULT CBSoundBuffer::SetVolume(int Volume) {
if (_stream && _handle) {
- byte vol = Volume / 100.f * Audio::Mixer::kMaxChannelVolume;
+ byte vol = (byte)(Volume / 100.f * Audio::Mixer::kMaxChannelVolume);
g_system->getMixer()->setChannelVolume(*_handle, vol);
}
return S_OK;
|