diff options
Diffstat (limited to 'engines')
-rw-r--r-- | engines/sky/music/adlibmusic.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/engines/sky/music/adlibmusic.cpp b/engines/sky/music/adlibmusic.cpp index aa5d9ee51f..1ebd6fa15d 100644 --- a/engines/sky/music/adlibmusic.cpp +++ b/engines/sky/music/adlibmusic.cpp @@ -60,9 +60,9 @@ int AdlibMusic::readBuffer(int16 *data, const int numSamples) { _nextMusicPoll = _sampleRate / 50; } else { uint32 render; - int remaining = numSamples; + uint remaining = numSamples; while (remaining) { - render = (remaining > _nextMusicPoll) ? (_nextMusicPoll) : (remaining); + render = (remaining > _nextMusicPoll) ? _nextMusicPoll : remaining; remaining -= render; _nextMusicPoll -= render; YM3812UpdateOne(_opl, data, render); |