Skip to content
Snippets Groups Projects
Commit 6e73e2cd authored by Monster Iestyn's avatar Monster Iestyn
Browse files

Merge branch 'next' into public_next

parents 93b65501 5fed1091
Branches
No related tags found
1 merge request!252OpenGL: Public flatsprite: The Fixening
...@@ -220,7 +220,7 @@ static Mix_Chunk *ds2chunk(void *stream) ...@@ -220,7 +220,7 @@ static Mix_Chunk *ds2chunk(void *stream)
break; break;
default: // convert arbitrary hz to 44100. default: // convert arbitrary hz to 44100.
step = 0; step = 0;
frac = ((UINT32)freq << FRACBITS) / 44100; frac = ((UINT32)freq << FRACBITS) / 44100 + 1; //Add 1 to counter truncation.
while (i < samples) while (i < samples)
{ {
o = (INT16)(*s+0x80)<<8; // changed signedness and shift up to 16 bits o = (INT16)(*s+0x80)<<8; // changed signedness and shift up to 16 bits
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment