Implement audio output

This commit is contained in:
wheremyfoodat 2024-02-22 02:15:49 +02:00
parent 093364f615
commit 21ced6fae7
11 changed files with 299 additions and 9 deletions

View file

@ -25,10 +25,11 @@ Emulator::Emulator()
#endif
{
DSPService& dspService = kernel.getServiceManager().getDSP();
dsp = Audio::makeDSPCore(config.dspType, memory, scheduler, dspService);
dspService.setDSPCore(dsp.get());
audioDevice.init(dsp->getSamples());
#ifdef PANDA3DS_ENABLE_DISCORD_RPC
if (config.discordRpcEnabled) {
discordRpc.init();