# 3d-webaudio-raub

> WebAudio plugin for Node.js 3D Core

Latest version **3.0.0** (published 2025-03-13) · MIT license · 0 weekly downloads

> **Deprecated.** This package is deprecated.

## Install

```sh
npm install 3d-webaudio-raub
pnpm add 3d-webaudio-raub
yarn add 3d-webaudio-raub
bun add 3d-webaudio-raub
```

## Health

**Score 10/100 (F)** — status: deprecated.

Negative: deprecated.

## Facts

| | |
|---|---|
| Version | 3.0.0 |
| Published | 2025-03-13 |
| First published | 2018-04-15 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | CommonJS |
| Node | >=22.14.0 |
| Dependencies | 1 |
| Unpacked size | 4.6 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Luis Blanco |
| Maintainers | raub |
| Keywords | plugin, 3d, node3d, webaudio, sound, audio, labsound, graphics |

## Links

- npm: https://www.npmjs.com/package/3d-webaudio-raub
- Repository: https://github.com/node-3d/3d-webaudio-raub
- Homepage: https://github.com/node-3d/3d-webaudio-raub#readme
- Issues: https://github.com/node-3d/3d-webaudio-raub/issues
- npm.io page: https://npm.io/package/3d-webaudio-raub

## Dependencies (1)

- [webaudio-raub](https://npm.io/package/webaudio-raub.md) ^5.1.1

## Alternatives

- [d3-force-3d](https://npm.io/package/d3-force-3d.md) — 1.0M weekly downloads
- [ng2-charts](https://npm.io/package/ng2-charts.md) — 486.8K weekly downloads
- [@arcgis/core](https://npm.io/package/@arcgis/core.md) — 257.8K weekly downloads
- [react-sparklines](https://npm.io/package/react-sparklines.md) — 249.3K weekly downloads
- [react-native-gifted-charts](https://npm.io/package/react-native-gifted-charts.md) — 182.3K weekly downloads

## Recent versions

- 3.0.0 (latest) — 2025-03-13
- 2.0.1 — 2023-11-22
- 2.0.0 — 2023-11-21
- 1.1.0 — 2020-10-03
- 1.0.1 — 2020-01-20
- 1.0.0 — 2020-01-14
- 0.0.3 — 2018-05-20
- 0.0.2 — 2018-05-01
- 0.0.1 — 2018-04-15

## README

# Node.js 3D WebAudio

This is a part of [Node3D](https://github.com/node-3d) project.

[![NPM](https://badge.fury.io/js/3d-webaudio-raub.svg)](https://badge.fury.io/js/3d-webaudio-raub)
[![ESLint](https://github.com/node-3d/3d-webaudio-raub/actions/workflows/eslint.yml/badge.svg)](https://github.com/node-3d/3d-webaudio-raub/actions/workflows/eslint.yml)
[![Test](https://github.com/node-3d/3d-webaudio-raub/actions/workflows/test.yml/badge.svg)](https://github.com/node-3d/3d-webaudio-raub/actions/workflows/test.yml)

```console
npm i -s 3d-webaudio-raub
```

![Example](examples/screenshot.jpg)

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](https://github.com/node-3d/webaudio-raub).
Some WebAudio features may be missing, but it works with Three.js. With positional audio.

Refer to [webaudio-raub](https://github.com/node-3d/webaudio-raub) for the full list
of currently implemented API.

```typescript
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](https://github.com/node-3d/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](https://threejs.org/docs/#api/en/audio/PositionalAudio).

---
_Source: https://npm.io/package/3d-webaudio-raub · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
