fix overflow in AttenuateBuf

This commit is contained in:
Glenn Maynard
2004-02-23 01:04:58 +00:00
parent 6ff5eba04d
commit 6def357f15
@@ -98,7 +98,7 @@ bool RageSound_ALSA9::stream::GetData(bool init)
bytes_read += got;
bytes_left -= got;
RageSoundManager::AttenuateBuf( buf, got, snd->GetVolume() );
RageSoundManager::AttenuateBuf( buf, got/sizeof(Sint16), snd->GetVolume() );
if( bytes_left > 0 )
{