Quote Originally Posted by anonytmouse
Code:
		/*   Convert 16 bit signed samples to unsigned. */
		pSample->left  = (SHORT) pSample->left  + 32768;
		pSample->right = (SHORT) pSample->right + 32768;
	}

	return ret;
}
This is probably a stupid question but how come the samples have to converted to signed integers, and when i tried running the program and excluding that part of the code, the samples still appear to be unsigned in the output?

Split from
http://cboard.cprogramming.com/showthread.php?t=72183