rem: mixSDL_PutConvSample (&dst, dstbpc, flags, sampr);
add: mixSDL_PutConvSample (&dst, dstbpc, flags, samp);
context: mixSDL_Resample_frac (mixSDL_Convertion *conv){	mixSDL_ConvFlags flags = conv->flags;	uint8 *src = conv->srcdata;	uint8 *dst = conv->dstdata;	uint32 srcsamples = conv->srcsamples;	uint32 srcbpc = conv->srcbpc;	uint32 dstbpc = conv->dstbpc;	double convrate = (double)conv->srcfreq / conv->dstfreq;	double dstpos = 0;	uint32 nextsrcpos; /* next position already read */	sint32 sampl, sampr, nextsampl, nextsampr;	uint32 srcjump = srcbpc * conv->srcchans;	bool stereo = conv->srcchans == 2 && !(flags & mixConvStereoDown);	uint32 i;	nextsampl = mixSDL_GetConvSample (&src, srcbpc, flags);	if (stereo)		nextsampr = mixSDL_GetConvSample (&src, srcbpc, flags);	else		nextsampr = 0;	nextsrcpos = 0;	for (i = conv->dstsamples; i; i--)	{		double delta, intdstpos;		uint32 srcpos;		uint32 samp;		delta = modf (dstpos, &intdstpos);		srcpos = (uint32) intdstpos;		if (srcpos >= nextsrcpos)		{			if (srcpos == nextsrcpos)			{				sampl = nextsampl;				sampr = nextsampr;				nextsrcpos++;			}			else			{				src += srcjump * (srcpos - nextsrcpos - 1);				sampl = mixSDL_GetConvSample (&src, srcbpc, flags);				if (stereo)					sampr = mixSDL_GetConvSample (&src, srcbpc, flags);				nextsrcpos = srcpos + 1;			}			if (nextsrcpos < srcsamples)			{				nextsampl = mixSDL_GetConvSample (&src, srcbpc, flags);				if (stereo)					nextsampr = mixSDL_GetConvSample (&src, srcbpc, flags);			}			else			{				/* theoretically, here we need to get the next sample				 * somehow, which is in the next buffer in the stream;				 * leaving the next sample equal to the previous should				 * do for now; this will create some-20 minimal				 * distortions per second				 */				/* nextsampl = nextsampr = 0; */			}		}		/* iterpolate */		samp = sampl + (sint32) (delta * (nextsampl - sampl));		mixSDL_PutConvSample (&dst, dstbpc, flags, samp);		if (stereo)		{			samp = sampr + (sint32) (delta * (nextsampr - sampr));			mixSDL_PutConvSample (&dst, dstbpc, flags, sampr);		}				dstpos += convrate;	}}