2020-08-22 22:30:12 -04:00
|
|
|
/*!
|
|
|
|
* @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"
|
2022-06-04 14:53:49 -04:00
|
|
|
#include "game/sound/989snd/ame_handler.h"
|
2022-06-09 21:18:08 -04:00
|
|
|
#include "game/overlord/srpc.h"
|
2022-06-04 14:53:49 -04:00
|
|
|
#include "common/common_types.h"
|
2020-08-22 22:30:12 -04:00
|
|
|
|
|
|
|
/*!
|
|
|
|
* Does nothing!
|
|
|
|
*/
|
|
|
|
void InitSound() {}
|
|
|
|
|
|
|
|
/*!
|
|
|
|
* Does nothing!
|
|
|
|
*/
|
|
|
|
void ShutdownSound() {}
|
|
|
|
|
2022-06-04 14:53:49 -04:00
|
|
|
/*!
|
2022-06-09 21:18:08 -04:00
|
|
|
* PC port functions
|
2022-06-04 14:53:49 -04:00
|
|
|
*/
|
|
|
|
void set_flava_hack(u64 val) {
|
|
|
|
snd::SoundFlavaHack = val;
|
|
|
|
}
|
|
|
|
|
2022-06-09 21:18:08 -04:00
|
|
|
void set_fade_hack(u64 val) {
|
|
|
|
gMusicFadeHack = val;
|
|
|
|
}
|
|
|
|
|
2020-08-22 22:30:12 -04:00
|
|
|
/*!
|
|
|
|
* 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);
|
2020-12-23 11:15:41 -05:00
|
|
|
make_stack_arg_function_symbol_from_c("rpc-call", (void*)RpcCall_wrapper);
|
2022-06-09 21:18:08 -04:00
|
|
|
|
|
|
|
// PC port interns
|
2022-06-04 14:53:49 -04:00
|
|
|
make_function_symbol_from_c("pc-sound-set-flava-hack", (void*)set_flava_hack);
|
2022-06-09 21:18:08 -04:00
|
|
|
make_function_symbol_from_c("pc-sound-set-fade-hack", (void*)set_fade_hack);
|
2022-06-04 14:53:49 -04:00
|
|
|
}
|