示例#1
0
文件: emu.cpp 项目: robojan/EmuAll
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);
}
示例#2
0
文件: emu.cpp 项目: robojan/EmuAll
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);
}