Beispiel #1
0
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);
}
Beispiel #2
0
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);
}