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

stream audio using web sockets in web worker rendered using web audio

  • 1.2.1
  • Source
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

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

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 :

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 :

		 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.

Keywords

FAQs

Package last updated on 02 Sep 2014

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

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