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:
Kyzentun Keeslala
2016-06-21 20:09:16 -06:00
parent d4926506f9
commit 8796946b4f
3 changed files with 5 additions and 4 deletions
+1 -2
View File
@@ -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 )