/3d-webaudio-raub

WebAudio plugin for Node.js 3D Core

Primary LanguageJavaScriptMIT LicenseMIT

Node.js 3D WebAudio

This is a part of Node3D project.

NPM ESLint Test

npm i -s 3d-webaudio-raub

WebAudio plugin for Node.js 3D Core. It injects WebAudio API into Node3D's window.

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

This module is WORK IN PROGRESS. Some features are missing for good.

For the full contents of currently exported webaudio object, see the docs of webaudio-raub. This plugin re-exports those as is.