From 0e0391007c8d43c75dd91b53e570de97a5cd81b1 Mon Sep 17 00:00:00 2001 From: Glenn Maynard Date: Sat, 20 Jan 2007 01:12:25 +0000 Subject: [PATCH] int16_t --- stepmania/src/RageSound.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/stepmania/src/RageSound.cpp b/stepmania/src/RageSound.cpp index 1b96b62275..88903bd08a 100644 --- a/stepmania/src/RageSound.cpp +++ b/stepmania/src/RageSound.cpp @@ -289,8 +289,7 @@ int RageSound::GetDataToPlay( int16_t *pBuffer, int iFrames, int64_t &iStreamFra int iSourceFrame; /* Read data from our source. */ - char *pDest = (char *) pBuffer; - int iGotFrames = m_pSource->RetriedRead( pDest + (iFramesStored * framesize), iFrames, &iSourceFrame, &fRate ); + int iGotFrames = m_pSource->RetriedRead( pBuffer + (iFramesStored * channels), iFrames, &iSourceFrame, &fRate ); if( iGotFrames == RageSoundReader::ERROR ) {