Changed RSR_WAV and RSR_Resample_Good back to using alloca because only gcc/C99 like dynamic arrays. RSR_SpeedChange now uses new/delete in spite of the performance.
This commit is contained in:
@@ -288,8 +288,7 @@ public:
|
||||
/* We've read the block header; read the rest. Don't read past the end of the data chunk. */
|
||||
int iMaxSize = min( (int) m_WavData.m_iBlockAlign - 7 * m_WavData.m_iChannels, (m_WavData.m_iDataChunkSize+m_WavData.m_iDataChunkPos) - m_File.Tell() );
|
||||
|
||||
char cBuf[iMaxSize];
|
||||
char* pBuf= cBuf;
|
||||
char *pBuf = (char *) alloca( iMaxSize );
|
||||
|
||||
int iBlockSize = m_File.Read( pBuf, iMaxSize );
|
||||
if( iBlockSize == 0 )
|
||||
|
||||
Reference in New Issue
Block a user