Commit 6c68dd6f authored by Erik Faye-Lund's avatar Erik Faye-Lund
Browse files

removed dithering of samples

git-svn-id: https://pimpmobile.svn.sourceforge.net/svnroot/pimpmobile/trunk@120 3d5ecaf0-f903-0410-b953-c2c1a4d75763
parent 32d7d031
......@@ -62,7 +62,8 @@ void convert_sample(sample_header_t *samp)
// dither and downsample
if (samp->format == SAMPLE_UNSIGNED_16BIT || samp->format == SAMPLE_SIGNED_16BIT)
{
new_sample = int(float(new_sample) + normal_noise() * (2.0 / 3) * (1 << 7)) >> 8;
// new_sample = int(float(new_sample) + normal_noise() * (2.0 / 3) * (1 << 7)) >> 8;
new_sample = int(float(new_sample)) >> 8;
if (new_sample > 127) new_sample = 127;
if (new_sample < -128) new_sample = -128;
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment