// GetDefaultEmulatorMock returns initialized emulator mock with default params.
// Spawns audio/image channels consumers.
// Don't forget to close emulator mock with shutdownEmulator().
GetDefaultEmulatorMock returns initialized emulator mock with default params.
Spawns audio/image channels consumers.
Don't forget to close emulator mock with shutdownEmulator().
// GetDefaultEmulatorMock returns initialized emulator mock with default params . // Spawns audio / image channels consumers . // Don ' t forget to close emulator mock with shutdownEmulator () .
func GetDefaultEmulatorMock(room string, system string, rom string) *EmulatorMock {
	mock := GetEmulatorMock(room, system)
	mock.loadRom(rom)
	go mock.handleVideo(func(_ GameFrame) {})
	go mock.handleAudio(func(_ []int16) {})
	return mock
}
func GetDefaultEmulatorMock ( room string , system string , rom string ) * EmulatorMock { mock := GetEmulatorMock ( room , system ) mock . loadRom ( rom ) go mock . handleVideo ( func ( _ GameFrame ) { } ) go mock . handleAudio ( func ( _ [ ] int16 ) { } ) return mock }
GetDefaultEmulatorMock returns initialized emulator mock with default params.
GetDefaultEmulatorMock returns initialized emulator mock with default params .