Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/halfbyte/soundbridge.js

A wrapper for various ways of outputting raw, realtime calculated sound in a browser
https://github.com/halfbyte/soundbridge.js

Last synced: 4 days ago
JSON representation

A wrapper for various ways of outputting raw, realtime calculated sound in a browser

Awesome Lists containing this project

README

        

Soundbridge, a minimal way of crossbrowser audio output
-------------------------------------------------------

Getting realtime audio output out of your browser, in 3 easy steps.

1. copy the soundbridge folder to the public folder of your project

2. Provide a callback function that sends audio signals back

3. Start the soundbridge.

Or, expressed in code, here's the minimum working example:

(function() {
var soundbridge = null;

var absoluteBufferPos = 0;
// a function that calculates sounds for the given number of samples
// and channels.

var calc = function(bridge, bufferSize, channels) {
for(var b=0;b

Everyone is permitted to copy and distribute verbatim or modified
copies of this license document, and changing it is allowed as long
as the name is changed.

DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION

0. You just DO WHAT THE FUCK YOU WANT TO.