replace alloca with malloc to fix windows builds

This commit is contained in:
Tetsuo55
2013-06-22 22:44:27 +02:00
parent 1bd80d781c
commit 02351b77f9
2 changed files with 2 additions and 2 deletions

View File

@ -348,7 +348,7 @@ void SoundTouch::flush()
int i;
int nUnprocessed;
int nOut;
SAMPLETYPE *buff=(SAMPLETYPE*)alloca(64*channels*sizeof(SAMPLETYPE));
SAMPLETYPE *buff=(SAMPLETYPE*)malloc(64*channels*sizeof(SAMPLETYPE));
// check how many samples still await processing, and scale
// that by tempo & rate to get expected output sample count