Commit graph

43 commits

Author SHA1 Message Date
Clownacy
32d635581a 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.
2020-01-07 22:03:49 +00:00
Clownacy
58d7a45392 Empty Tags.h
There's no evidence Tags.h contained these variables (if anything, it
appears that Pixel manually declared them in every file that used
them).

gg Pixel
2020-01-06 21:20:17 +00:00
Clownacy
dabf04f8ab Remove leftover macro 2019-11-17 17:53:50 +00:00
Gabriel Ravier
5b18283e5f Documentation : Made some comments clearer
Signed-off-by: Gabriel Ravier <gabravier@gmail.com>
2019-11-09 23:37:10 +01:00
Gabriel Ravier
17f7f66fc9 Documentation : Comment an always true expression
Signed-off-by: Gabriel Ravier <gabravier@gmail.com>
2019-11-09 23:37:10 +01:00
Clownacy
266bb13be2 Compare some pointers to NULL
Doesn't affect ASM-accuracy - I just think it looks neater.
2019-11-09 14:53:34 +00:00
Clownacy
d80adf9cc8 Comment on a bug in MakePixToneObject 2019-09-05 21:41:40 +00:00
Clownacy
8f1bc269f0 I might have found out why Sound.cpp uses DSBUFFERDESC1 2019-09-03 00:34:47 +01:00
Clownacy
09b188ac29 Add a bugfix for a bizarre function call 2019-09-03 00:17:42 +01:00
Clownacy
03e513365b PATH_LENGTH is actually Windows's MAX_PATH
When MAX_PATH isn't available, use FILENAME_MAX. This might be a bad
idea.
2019-08-31 01:44:53 +01:00
Clownacy
8bce9ffc7a Cleanup 2019-08-28 17:40:43 +01:00
Clownacy
e738541afd Note an inaccuracy 2019-08-28 07:56:51 +01:00
Clownacy
470c5d86d5 ASM-accurate Sound.cpp and Organya.cpp (except for one function) 2019-08-28 07:55:42 +01:00
Clownacy
c27d15dddc Prevent segfault on shutdown
Oddly enough, putting the check in the Release function doesn't fix
it. Makes me wonder how DirectSound did it. I don't know much C++.
2019-08-15 18:46:04 +00:00
Clownacy
add4e69374 Made Sound.cpp more accurate 2019-08-13 20:45:50 +01:00
Clownacy
3039e3b846 Link to the actual source code for Organya.cpp and Sound.cpp 2019-06-17 17:03:54 +00:00
Clownacy
078da6ccf7 Correct fmod usage 2019-06-14 17:06:42 +01:00
Clownacy
c80b593a3f Some #include fixes
Finally figured out how to get include-what-you-use working
2019-06-06 18:44:28 +00:00
Clownacy
0fb147aa0d Change the sound buffer size to a power of 2
Turns out giving SDL2 a non-power-of-2 buffer size crashes it in
Emscripten.
2019-05-29 18:49:09 +00:00
Clownacy
d2b5872c95 Weeded out some bool usage
Cave Story was written in C89. No bools. I've left in Sound.cpp's
though, since that's written in C++98 currently.
2019-05-24 10:07:30 +01:00
Clownacy
676ee004fe Removed the dependency on stdint.h
This doesn't exist in MSVC2003, and nothing in the Linux port's debug
symbols indicate Pixel used it.
2019-05-13 15:18:33 +01:00
Gabriel Ravier
960fa6f456 Removed all trailing spaces and added newline at EOF (when not present)
Also changed a "linux" to "Linux"

Signed-off-by: Gabriel Ravier <gabravier@gmail.com>
2019-05-07 11:55:42 +02:00
Clownacy
dc0f242f25 Made clamp macro safer 2019-05-04 21:37:06 +00:00
Clownacy
c52004a1b3 Add a missing #include 2019-05-03 01:40:52 +01:00
Clownacy
7d222231ae Added some missing headers 2019-04-26 01:41:36 +01:00
Clownacy
79bf011e3b Made GenericLoad.cpp ASM-accurate 2019-04-22 20:12:43 +01:00
Clownacy
295673b813 Sound cleanup and optimisation
PlaySoundObject is also more like it was in the original source code
2019-04-19 01:24:08 +01:00
Clownacy
923cd5a6e3 Added some Raspberry Pi hacks
Also added a debug print that tells you what backend SDL2 is using
2019-03-18 20:54:03 +00:00
Clownacy
01ddc5e923 Fixed some warning MSVC2003 was giving in /W3 mode 2019-02-23 21:45:57 +00:00
Clownacy
55f1d3a9fe Fixed some problems found while compiling most of this with VC++2003
I could compile most of this, but not link it (SDL2's .lib files must
be too new).
2019-02-20 03:55:05 +00:00
Clownacy
4d04590b28 Made the game compile as C++03
Still need to sort out the C++11-only initialiser lists that GCC allows
in C++03 mode with a warning.
2019-02-19 16:05:28 +00:00
Clownacy
0bb9760d87 Rearranged #includes 2019-02-18 21:30:22 +00:00
cuckydev
c7da84bb9f accuracy? 2019-02-12 20:58:42 -05:00
Clownacy
9c7457f4e2 Tiny cleanup in Sound.cpp
The samples are unsigned
2019-02-11 14:43:31 +00:00
Clownacy
61c75c0ffb Redecompiled PixTone.cpp
Now it's way more accurate. Even makes identical ASM.
2019-02-10 14:59:39 +00:00
Clownacy
ee88e805b3 Fix some errors and prevent some GCC warnings 2019-02-05 22:51:44 +00:00
cuckydev
113c3fc124 Made SFX loading more similar to the original 2019-01-31 13:01:09 -05:00
Clownacy
763c7d56c5 Sound.cpp cleanup 2019-01-30 21:07:51 +00:00
Clownacy
ad6e7d98ea Fixed audio volume being half of what it should be 2019-01-30 21:07:50 +00:00
Clownacy
acdf8aa622 Fixed some mistakes Cppcheck pointed out 2019-01-25 12:02:52 +00:00
cuckydev
a7f62c01a5 added fading 2019-01-22 10:48:16 -05:00
cuckydev
b1bb48148b resource and japanese 2019-01-20 15:55:28 -05:00
cuckydev
f43a3c1130 Org and sound 2019-01-19 21:23:04 -05:00