Socket
Book a DemoInstallSign in
Socket

3d-webaudio-raub

Package Overview
Dependencies
Maintainers
0
Versions
9
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

3d-webaudio-raub

WebAudio plugin for Node.js 3D Core

latest
Source
npmnpm
Version
3.0.0
Version published
Maintainers
0
Created
Source

Node.js 3D WebAudio

This is a part of Node3D project.

NPM ESLint Test

npm i -s 3d-webaudio-raub

Example

This plugin injects WebAudio API into Node3D's window. It ain't much, but it's honest work.

The WebAudio implementation is provided by webaudio-raub. Some WebAudio features may be missing, but it works with Three.js. With positional audio.

Refer to webaudio-raub for the full list of currently implemented API.

import { init } from '3d-core-raub';
import { init as initWebaudio } from '3d-webaudio-raub';

// Fetch `window` from standard Node3D init
const { window } = init();

// Initialize Webaudio
const { webaudio } = initWebaudio({ window });
// webaudio.AudioContext === window.AudioContext === global.AudioContext

Here, webaudio is directly re-exported webaudio-raub. You can also use it through window.AudioContext or just AudioContext. But the main idea is using it with Three.js, like this.

Keywords

plugin

FAQs

Package last updated on 13 Mar 2025

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