jak-project/game/kernel/ksound.cpp
ManDude d01c16f451
[game] music player (#1416)
* music flava hack toggle

* fix hint subtitles not being considered offscreen

* music player works

* fixes + citadel, maincave, lavatube music

* add remaining tracks

* fix test

* fixes

* fix lib
2022-06-04 14:53:49 -04:00

40 lines
951 B
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 "common/common_types.h"
/*!
* Does nothing!
*/
void InitSound() {}
/*!
* Does nothing!
*/
void ShutdownSound() {}
/*!
* PC port function
*/
void set_flava_hack(u64 val) {
snd::SoundFlavaHack = 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);
make_function_symbol_from_c("pc-sound-set-flava-hack", (void*)set_flava_hack);
}