Stop compiling some DSP-related files.

Replace it all with stubs.
This commit is contained in:
PJB3005
2026-03-20 18:05:17 +01:00
parent 3f671b028d
commit 0fbb62d7dc
3 changed files with 37 additions and 5 deletions
+2 -1
View File
@@ -89,7 +89,8 @@ add_library(game_debug STATIC ${JSYSTEM_DEBUG_FILES} ${SSYSTEM_FILES}
src/dusk/audio/DuskDsp.hpp
src/dusk/audio/DuskDsp.cpp
src/dusk/audio/Adpcm.cpp
src/dusk/audio/Adpcm.hpp)
src/dusk/audio/Adpcm.hpp
src/dusk/audio/DspStub.cpp)
target_compile_definitions(game_debug PRIVATE TARGET_PC AVOID_UB=1 VERSION=0 $<$<CONFIG:Debug>:DEBUG=1>)
# Make these properties PUBLIC so that the regular game target also sees them.
-4
View File
@@ -507,10 +507,6 @@ set(JSYSTEM_DEBUG_FILES
libs/JSystem/src/JAudio2/JASDSPInterface.cpp
libs/JSystem/src/JAudio2/JASDriverIF.cpp
libs/JSystem/src/JAudio2/JASSoundParams.cpp
libs/JSystem/src/JAudio2/dspproc.cpp
libs/JSystem/src/JAudio2/dsptask.cpp
libs/JSystem/src/JAudio2/osdsp.cpp
libs/JSystem/src/JAudio2/osdsp_task.cpp
libs/JSystem/src/JAudio2/JAIAudible.cpp
libs/JSystem/src/JAudio2/JAIAudience.cpp
libs/JSystem/src/JAudio2/JAISe.cpp
+35
View File
@@ -0,0 +1,35 @@
#include "JSystem/JAudio2/dspproc.h"
#include "JSystem/JAudio2/osdsp_task.h"
#include "JSystem/JAudio2/dsptask.h"
#include "global.h"
#include "os.h"
void DSPReleaseHalt2(u32) {
CRASH("We do not directly emulate the DSP");
}
void DsetupTable(u32, u32, u32, u32, u32) {
// Nada.
}
void DsetMixerLevel(f32) {
// Nada for now, but maybe we should care about this?
}
void DsyncFrame2ch(u32, u32, u32) {
CRASH("We do not directly emulate the DSP");
}
void DsyncFrame4ch(u32, u32, u32, u32, u32) {
CRASH("We do not directly emulate the DSP");
}
void DspBoot(void (*)(void*)) {
CRASH("We do not directly emulate the DSP");
}
void DspFinishWork(u16) {
CRASH("We do not directly emulate the DSP");
}
int DSPSendCommands2(u32*, u32, void (*)(u16)) {
CRASH("We do not directly emulate the DSP");
}
void DsyncFrame2(u32, u32, u32) {
CRASH("We do not directly emulate the DSP");
}