Commit Graph

2787 Commits

Author SHA1 Message Date
PJB3005 4b30cd7ddb Re-add src == dst check in SafeStringCopyTruncate
Accidentally dropped this while iterating on the exact implementation.
2026-03-27 17:17:45 +01:00
PJB3005 0e1718e80d Do use strncpy in SafeStringCopy
I figured out how to mute the warnings.
2026-03-27 17:16:41 +01:00
PJB3005 96a61ed0b6 Fix CRASH() macro outside MSVC
Just add a CRASHF() overload that... isn't necessary anymore. Oh well.
2026-03-27 17:07:54 +01:00
PJB3005 0178ab35b3 Add replacement helpers for strncpy[_s]
Portable without vulnerabilities.
2026-03-27 16:54:51 +01:00
PJB3005 c9151fca4a Remove SDL mixer
Didn't end up using it.
2026-03-27 15:10:31 +01:00
PJB3005 967ea0c939 Audio channels are sorted with a stable sort 2026-03-27 14:54:27 +01:00
PJB3005 b01581b043 Show new audio channels as green on the debug tool 2026-03-27 14:54:17 +01:00
PJB3005 6073a0c3f0 Implement master volume & volume interpolation
Does not fix clicking :(

Fixes https://github.com/TakaRikka/dusk/issues/132
Fixes https://github.com/TakaRikka/dusk/issues/128
2026-03-27 14:54:03 +01:00
PJB3005 625a94dcff Replace ugly cast in dusk::audio::DspRender 2026-03-27 13:35:33 +01:00
PJB3005 2e441c9156 Skip oscillator channels properly I think 2026-03-27 12:42:37 +01:00
Lurs 1faded3faf fix stuck note e.g. in Hyrule field 2026-03-27 12:23:41 +01:00
PJB3005 e2923d3745 Fix shutdown crash 2026-03-26 15:03:48 +01:00
Lurs 72e2c71de6 Fix audio memory leak 2026-03-26 11:02:24 +01:00
PJB3005 7ac96d0251 Merge branch 'main' into pjb-audio 2026-03-25 16:43:59 +01:00
Lurs 3ad7e70963 removing Z2Creature::startCreatureVoice stub 2026-03-25 09:35:16 +01:00
PJB3005 acf3844f1f Add note about DUSK_SELECTED_OPT to README 2026-03-23 13:53:23 +01:00
PJB3005 ff7a80c7b4 Add a bunch of missing imgui close buttons 2026-03-23 13:46:46 +01:00
PJB3005 d5786356e2 Threading cleanup: remove MallocAllocator stuff
Not necessary anymore now that JKRHeap is isolated
2026-03-23 13:34:20 +01:00
TakaRikka 4a2294c40b save editor wip 2026-03-23 05:01:42 -07:00
TakaRikka b0e3a4e0d2 enable cs fades again 2026-03-22 00:20:37 -07:00
TakaRikka 793e09b95c aeralfos UB fix 2026-03-21 22:56:44 -07:00
TakaRikka 6d4f41b50d fix fopAcM_createItemFromEnemyID fix 2026-03-21 20:30:41 -07:00
TakaRikka 82172e2ee5 fix fopAcM_createItemFromEnemyID 2026-03-21 19:06:51 -07:00
TakaRikka 7ce4c444ec fix d_a_peru animation data 2026-03-21 18:05:29 -07:00
TakaRikka 9bc74b0226 various crash fixes 2026-03-21 05:07:51 -07:00
TakaRikka 0122e42e1e fix potential crash with heap name display 2026-03-21 01:50:20 -07:00
TakaRikka 2075da3347 Merge https://github.com/zeldaret/tp 2026-03-21 01:14:00 -07:00
TakaRikka f8cf545848 cleanup d_a_obj_wflag (#3135) 2026-03-21 00:56:27 -07:00
CraftyBoss 328102ef2e Merge branch 'main' of https://github.com/TakaRikka/dusk 2026-03-21 00:56:15 -04:00
CraftyBoss 955a70db1e more BE stuff, fix scissors for dmap/fmap 2026-03-21 00:56:01 -04:00
Max Roncace 2c7ae22167 Add more heap names for debug 2026-03-20 20:59:50 -04:00
PJB3005 f28585d18c Fix block-unaligned loop decoding 2026-03-20 19:38:49 +01:00
PJB3005 d257229e9c Stop compiling more DSP stubs 2026-03-20 18:50:47 +01:00
PJB3005 fb1323a583 Stop compiling some DSP-related files.
Replace it all with stubs.
2026-03-20 18:05:17 +01:00
PJB3005 82511a95af CLion? More like CLiedToMe 2026-03-20 17:54:37 +01:00
PJB3005 ebebb1af34 Audio system cleanup and comments 2026-03-20 17:51:42 +01:00
PJB3005 a6817f69d0 struct JASWaveArc forward declaration fix 2026-03-20 17:51:09 +01:00
Lurs e22c9da163 remove double swapping 2026-03-20 15:50:57 +01:00
Max Roncace 4a4a5724e1 Fix last argument in calls to dCamera_c::startEventCamera
The last argument is used as a char*, so we need to explicitly
pass nullptr instead of 0 to ensure it has the correct type.
This was causing crashes due to va_arg reading 8 bytes when only 4
were provided by the caller - if the out-of-bounds bytes are
non-zero, the null check fails and it continues pulling args from
beyond the argument buffer potentially triggering a segfault.
2026-03-20 02:51:29 -04:00
CraftyBoss 4c613244c1 oops forgot to include something 2026-03-19 23:59:37 -04:00
CraftyBoss fe60866ffd fix StaffWork being too big for work buffer, increase mpTalkHeap size 2026-03-19 23:54:00 -04:00
PJB3005 b8b64304e4 Attempt to allow sample rates to be changed dynamically
Doesn't fix the walking bomb things :(
2026-03-19 20:28:15 +01:00
PJB3005 911a12aaea How did this compile ??? 2026-03-19 20:27:46 +01:00
PJB3005 e0ad41e3be Merge remote-tracking branch 'origin/main' into pjb-audio 2026-03-19 20:16:57 +01:00
PJB3005 5d5969f415 Load bearing include 2026-03-19 20:07:39 +01:00
PJB3005 a1631942b6 Move the audio dumping code to a define 2026-03-19 20:06:28 +01:00
PJB3005 5419d357d8 Skip work in ReadChannelSamples if no new samples needed 2026-03-19 20:06:02 +01:00
PJB3005 6df246eb06 PCM16 support
Wanted this to test something, not sure if it's used in-game
2026-03-19 20:05:47 +01:00
CraftyBoss e0bbf3e575 add more be swap in J3DDeform data, stub TObject_sound::do_paragraph 2026-03-19 13:36:10 -04:00
PJB3005 3d396d66b6 Stereo audio! 2026-03-19 17:47:11 +01:00