Use node-retro to run libretro cores from within node. This is used by gametime-player to load cores for emulation.
node-retro is designed to be minimilistic to let users decide how they want to use libretro cores. Methods should be bound by .on'ing them.
- node's Buffer
- v8's ArrayBuffer
Both have been used in node-retro for different purposes. When a file is probably going to be loaded/accessed it will expect a node Buffer (so the fs commands work without fixes). During video/audio callbacks ArrayBuffer is used because they are expected by the two dominant APIs:
For an example implementation of node-retro, look at my repo gametime-player. It uses Web APIs to run libretro cores.