I am new to MAME. I would like to intercept the frames generated by the emulator, so I can train an AI to play a game. It would also be very useful to be able to "pause" the game for a fixed time between frames, in case the AI system is too slow to play in real time. I could not find this topic in archives. Would anyone have an idea about how to do this? Any pointer in the code?
Thanks in advance for your help,