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 -1
View File
@@ -667,7 +667,7 @@ int RageSoundReader_Resample_Good::Read( float *pBuf, int iFrames )
{
int iFramesNeeded = m_apResamplers[0]->NumInputsForOutputSamples(iFrames);
float pTmpBuf[iFramesNeeded * iChannels];
float *pTmpBuf = (float *) alloca( iFramesNeeded * sizeof(float) * iChannels );
int iFramesIn = m_pSource->Read( pTmpBuf, iFramesNeeded );
if( iFramesIn < 0 )
return iFramesIn;