ref: 32d635581aede7a4ba1fec9c96790b56ac103081
parent: e459364a33054107d5a74800e90a94f4809cae5b
author: Clownacy <Clownacy@users.noreply.github.com>
date: Tue Jan 7 17:03:49 EST 2020
Sound.cpp variable arrangement tweaks Not much can be done for this file, considering how heavily it was modified in the Linux port. While I was here, I noted the unused .wav loading function.
--- a/src/Sound.cpp
+++ b/src/Sound.cpp
@@ -131,6 +131,8 @@
return TRUE;
}
+// Completely unused function for loading a .wav file as a sound effect.
+// Some say that sounds heard in CS Beta footage don't sound like PixTone...
BOOL LoadSoundObject(LPCSTR file_name, int no)
{
char path[MAX_PATH];
@@ -290,12 +292,11 @@
unsigned long data_bytes;
} WavHeader;
- int i;
- int j;
+ int sample_count;
+ int i, j;
DSBUFFERDESC dsbd;
WavHeader wav_header;
const PIXTONEPARAMETER *ptp_pointer;
- int sample_count;
unsigned char *pcm_buffer;
unsigned char *mixed_pcm_buffer;