npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2025 – Pkg Stats / Ryan Hefner

aframe-ambisonic-component

v0.5.3

Published

A Ambisonic Audio component for A-Frame.

Readme

aframe-ambisonic-component

Version License

An Ambisonic Audio component for A-Frame.

Built on Omnitone.

API

| Property | Description | Default Value | Values | | -------- | ----------- | ------------- | ------ | | src | The source of the audio. This can be an HTMLMediaElement (<audio /> or <video />), an ID string pointing to an HTMLMediaElement or a resouce string. | | | sources | Load multiple audio files1. Overrides src. | | Array of URL strings | | loop | Whether to loop the element source. Overwrites the value set by the input element. | true | | | useMediaElement | Whether to use a media element (required for video). Alternatively, load from source as an audio buffer. | true | | | autoplay | Whether to autoplay the element source. Overwrites the value set by the input element. | true | | | mode | Audio rendering mode | ambisonic | [oneOf(ambisonic, bypass, off)] | | order | Order of ambisonic rendering | 1 | 1, 2 or 3 | | channelMap | Ordering of ambisonic component channels | ACN | [oneOf(ACN), FuMa, SID] or Array of integers |

1: Higher-order ambisonic audio requires 9 or 16 channels, but most browsers can only decode 8 channels at a time. So it is necessary to split the audio file into two: each with no more than 8 channels. See Higher Order Ambisonics example.

Installation

Browser

Install and use by directly including the script compiled for the browser:

<head>
  <title>My A-Frame Scene</title>
  <script src="https://aframe.io/releases/1.0.3/aframe.min.js"></script>
  <script src="https://unpkg.com/aframe-ambisonic-component"></script>
</head>

<body>
  <a-scene>
    <a-assets>
      <audio id="audio" src="audiofile.mp4"></audio>
    </a-assets>
    <a-ambisonic src="#audio"></a-entity>
  </a-scene>
</body>

If you already have Omnitone loaded or if you're using another component that loads Omnitone (e.g. aframe-resonance-audio-component), there is a much smaller version of the script that does not include Omnitone.

<script src="https://unpkg.com/aframe-ambisonic-component/build/aframe-ambisonic-component-no-omnitone.min.js"></script>

npm

Install via npm:

npm install aframe-ambisonic-component

Then require and use.

require('aframe');
require('aframe-ambisonic-component');