Coder Social home page Coder Social logo

niekvlessert / vgmplay-js-2 Goto Github PK

View Code? Open in Web Editor NEW
6.0 3.0 1.0 8.18 MB

VGMRips VGMPlay transpiled to Javascript, can be used as player and library

Home Page: https://niekvlessert.github.io/vgmplay-js-2/

License: MIT License

CMake 1.69% CSS 3.00% HTML 0.25% C 81.17% JavaScript 13.89%

vgmplay-js-2's Introduction

vgmplay-js-2

VGMRips VGMPlay transpiled to Javascript, can be used as player and library

This is a new version, based on vgmplay-js. Objectives:

  • Make it work on current Emscripten version and browser versions.
  • Minimize the amount of HTML code required to use it.
  • Make it usuable as a library as well as a player.
  • Offer playback through both Scriptprocessor and Audioworklet.

Audioworklet support is not ready yet, as well as some player features.

Works on Chrome 79, Firefox 71, compilation works at least with Emcc 1.39.3.

Building, for testing it's adviced to check the files out in a directory of the webserver:

cd /var/www/html/
git clone --recursive https://github.com/niekvlessert/vgmplay-js-2.git
cd vgmplay-js
cp ~/yrw801.rom files #for ymf278B support
mkdir build
cd build
emcmake cmake ..
make

Then visit:

https://<your webserver ip>/vgmplay-js-2/

By default a player is shown and the html file will be scanned for .zip files. If available they're unpacked into the Emscripten filesystem, then a player will be displayer. You can also build your own player and use it as a library, you can use variables before including the glue file to choose the behaviour. Documentation for that will be created later.

Loading vgmrips.net zip files is as easy as putting them on the webserver and offer them to download, then include the glue and the player will be pick them up:

<html>
<body>
Download this amazing MSX music: <a href="https://192.168.1.18/01.zip">Xak</a><br/>
Download this amazing MSX music: <a href="https://192.168.1.18/02.zip">SD Snatcher</a>
<script src="vgmplay-js-glue.js"></script>
</body>
</html>

This will generate something like this:

Screenshot

vgmplay-js-2's People

Contributors

niekvlessert avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

Forkers

cyberic99

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.