I have global variable rawsound
char * rawsound;
I iterate in loop
while ( spx_int16_t *output = new spx_int16_t[pos_rez