Skip to content

MrRio/js-snes-player

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

41 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

js-snes-player

This is a fork of MrRio's original

A prototype for a HTML5 audio player that can emulate the Nintendo SNES.

How it was done:

  1. SPC files are converted to JSON so they can be loaded in
  2. The SNES_SPC library (written in C++) is compiled to LLVM, which in turn is compiled to JavaScript, thanks to Emscripten
  3. The SPC file is written to a virtual memory pointer and handed to the C++ library
  4. The library generates the raw audio which is pushed on to the memory heap
  5. We read the audio data from the heap, and push that on to the new HTML5 Web Audio API

Status

There's a few performance issues, but there's a basic mono stream working :)

About

Emulator for playing SNES SPC tunes in JavaScript

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published