FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

SharpMod/SharpMod.Wasm at master · morphx666/SharpMod · GitHub

Latest commit

 

History

History

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 

README.md

SharpMod.Wasm

SharpMod running in the browser as a WebAssembly module, built on top of the SharpMod library.

Live demo: sharpmod.djxavi.com

How it works

SharpModInterop is the bridge between the page and the SharpMod library. Each method tagged with [JSExport] becomes a regular function on the JavaScript side, so the browser can drive playback without leaving JS:

  • hand a module file to Load to open it,
  • call Read whenever the Web Audio backend needs more PCM samples,
  • and use the smaller accessors to read back things like the title, the active channels, the current pattern or the waveform of a given instrument — everything the on-screen views need to stay in sync with playback.

Back | FazBrowse Home | New Git URL