Menu

Tree [fed8b4] master /
 History

HTTPS access


File Date Author Commit
 src 2015-12-12 joric joric [fed8b4] SetVolume API function (SetMasterVolume is depr...
 README.md 2015-12-12 joric joric [fed8b4] SetVolume API function (SetMasterVolume is depr...
 audio.html 2015-11-01 joric joric [731e41] first commit
 bmxplay.min.js 2015-12-12 joric joric [fed8b4] SetVolume API function (SetMasterVolume is depr...
 index.html 2015-12-12 joric joric [fed8b4] SetVolume API function (SetMasterVolume is depr...
 package.json 2015-11-05 joric joric [f59787] 0.1.0
 test.js 2015-11-27 joric joric [dac0e4] fixed codestyle and typos
 webgl.html 2015-12-12 joric joric [fed8b4] SetVolume API function (SetMasterVolume is depr...

Read Me

BmxplayJS

Bmxplay, JavaScript version. Written in "modern" OOP with closures (where applicable).

For C version and Buzz-compatible machines see the original bmxplay project.

Demo

http://bmxplay.sourceforge.net

Installation

npm:

npm install && npm run-script compile

API

  • Load(bytes: string): number
  • SetCallback(callback: function({pos:number, size:number})): void
  • Play(): boolean
  • Stop(): boolean
  • SetPos(pos: number): void
  • IsPlaying(): boolean
  • SetVolume(vol: number): void
  • Render(callback: function(data: array), repeats: number): void
  • GetOscData(type: number, size: number, smooth: number): array

License

MIT