mirror of
https://git.do.srb2.org/STJr/SRB2.git
synced 2025-01-30 21:20:54 +00:00
Merge branch 'master' into netcode-shit
This commit is contained in:
commit
7cca60a027
2 changed files with 2 additions and 2 deletions
|
@ -5579,7 +5579,7 @@ boolean G_CheckDemoStatus(void)
|
||||||
WRITEUINT8(demo_p, DEMOMARKER); // add the demo end marker
|
WRITEUINT8(demo_p, DEMOMARKER); // add the demo end marker
|
||||||
md5_buffer((char *)p+16, demo_p - (p+16), p); // make a checksum of everything after the checksum in the file.
|
md5_buffer((char *)p+16, demo_p - (p+16), p); // make a checksum of everything after the checksum in the file.
|
||||||
#endif
|
#endif
|
||||||
saved = FIL_WriteFile(demoname, demobuffer, demo_p - demobuffer); // finally output the file.
|
saved = FIL_WriteFile(va(pandf, srb2home, demoname), demobuffer, demo_p - demobuffer); // finally output the file.
|
||||||
free(demobuffer);
|
free(demobuffer);
|
||||||
demorecording = false;
|
demorecording = false;
|
||||||
|
|
||||||
|
|
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue