Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

web-audio-workers-sockets

Package Overview
Dependencies
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

web-audio-workers-sockets - npm Package Compare versions

Comparing version 1.0.1 to 1.0.2

src/webaudio_player.js

5

package.json
{
"name": "web-audio-workers-sockets",
"version": "1.0.1",
"version": "1.0.2",
"description": "stream audio using web sockets in web worker rendered using web audio",

@@ -10,2 +10,5 @@ "main": "index.js",

},
"engines": {
"node": "0.10.x"
},
"dependencies": {

@@ -12,0 +15,0 @@ "ws": "0.4.x",

@@ -5,1 +5,46 @@ web-audio-workers-sockets

stream audio using web sockets in web worker rendered using web audio
The goal is to stream audio from server to browser to be rendered using web audio.
Without using webworkers, my experience is the audio gets choppy when the single thread
of the browser is used for everything (streaming sockets / audio rendering)
I have discovered firefox fails to allow websockets from inside a webworker, yet
this is OK on chrome. Also, no browser supports web audio from a webworker.
So I will see if I can eliminate this choppy audio issue by creating a sandwich :
websocket <--> webworker <--> webaudio
... but first I will attempt to get a smooth audio rendering using just websockets + web audio
# Installation
Dependencies include node/npm
```bash
npm install -g web-audio-workers-sockets
cd $NODE_PATH/web-audio-workers-sockets
npm start
```
... or if you prefer to have the git repo local :
```bash
git clone git@github.com:scottstensland/web-audio-workers-sockets.git
cd web-audio-workers-sockets
npm install # install the dependent modules
npm start
```
Using a web audio/web worker/websocket savvy browser, point it at URL :
```bash
http://localhost:8888
```
As of today - August 26th 2014 - only chrome works on linux, firefox (34.0a1 (2014-08-04)) fails since it cannot yet handle launching a websocket from a webworker thread. Opera also fails on lack of web audio.
src/index.html

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc