Files
jak-project/game/kernel/ksound.cpp
T
ManDude 7ce58f709f process-spawn + pretty printer improvements (#1428)
* some jp support to fix some errors in the original game

* music fade toggle

* recognize `process-new` macros!!

* strip casts in this macro

* rename macro

* fix cast typecheck

* update source 1

* detect kernel stack case

* less boilerplate

* `manipy-spawn` special case

* pretty printer improvements

* revert dumb thing from earlier

* use shell detection on `send-event`

* fix some events

* remove unused argument

* detect `static-attack-info` and add `CondNoElse` to shell detect

* better `attack-info` detect

* support `process-spawn` in multi-lets

* detect `rand-float-gen` pt 1

* detect as return value

* detect in `countdown` and  `dotimes`

* oops this wasnt working

* fancier `send-event`s

* clang

* update source!!

* fix tests

* fine jeez

* uh okay

* fix some accidental regressions

* fix more regressions

* regression fixes

* fix big bug...

* extra safety!
2022-06-10 02:18:08 +01:00

48 lines
1.1 KiB
C++

/*!
* @file ksound.cpp
* There's not much here. My guess is this was set up as framework to match the kmachine.cpp format,
* but whoever did the sound didn't use this.
*/
#include "ksound.h"
#include "kscheme.h"
#include "kdgo.h"
#include "game/sound/989snd/ame_handler.h"
#include "game/overlord/srpc.h"
#include "common/common_types.h"
/*!
* Does nothing!
*/
void InitSound() {}
/*!
* Does nothing!
*/
void ShutdownSound() {}
/*!
* PC port functions
*/
void set_flava_hack(u64 val) {
snd::SoundFlavaHack = val;
}
void set_fade_hack(u64 val) {
gMusicFadeHack = val;
}
/*!
* Set up some functions which are somewhat related to sound.
*/
void InitSoundScheme() {
make_function_symbol_from_c("rpc-call", (void*)RpcCall_wrapper);
make_function_symbol_from_c("rpc-busy?", (void*)RpcBusy);
make_function_symbol_from_c("test-load-dgo-c", (void*)LoadDGOTest);
make_stack_arg_function_symbol_from_c("rpc-call", (void*)RpcCall_wrapper);
// PC port interns
make_function_symbol_from_c("pc-sound-set-flava-hack", (void*)set_flava_hack);
make_function_symbol_from_c("pc-sound-set-fade-hack", (void*)set_fade_hack);
}