void __stdcall GetAudio(EMUHANDLE handle, int32_t source, int16_t *buffer, int32_t samples) { Gameboy *emulator = (Gameboy *)handle; if (handle == nullptr) return; emulator->GetSound()->GetAudio(source, buffer, samples); }
void __stdcall InitAudio(EMUHANDLE handle, int32_t source, uint32_t sampleRate, int32_t channels) { Gameboy *emulator = (Gameboy *)handle; if (handle == nullptr) return; emulator->GetSound()->InitAudio(source, sampleRate, channels); }