New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@wasm-audio-decoders/ogg-vorbis

Package Overview
Dependencies
Maintainers
1
Versions
19
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@wasm-audio-decoders/ogg-vorbis

Web Assembly streaming Ogg Vorbis decoder

  • 0.1.3
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
246K
decreased by-2.77%
Maintainers
1
Weekly downloads
 
Created

What is @wasm-audio-decoders/ogg-vorbis?

@wasm-audio-decoders/ogg-vorbis is an npm package that provides WebAssembly (WASM) based decoding of Ogg Vorbis audio files. This allows for efficient and high-performance audio decoding directly in the browser or in Node.js environments.

What are @wasm-audio-decoders/ogg-vorbis's main functionalities?

Decoding Ogg Vorbis Audio

This feature allows you to decode Ogg Vorbis audio files from an ArrayBuffer. The code sample demonstrates how to create an instance of the OggVorbisDecoder, wait for it to be ready, and then decode the audio data.

const { OggVorbisDecoder } = require('@wasm-audio-decoders/ogg-vorbis');

async function decodeOggVorbis(arrayBuffer) {
  const decoder = new OggVorbisDecoder();
  await decoder.ready;
  const audioData = await decoder.decode(arrayBuffer);
  console.log(audioData);
}

// Example usage with an ArrayBuffer of Ogg Vorbis data
const oggVorbisArrayBuffer = /* ArrayBuffer containing Ogg Vorbis data */;
decodeOggVorbis(oggVorbisArrayBuffer);

Other packages similar to @wasm-audio-decoders/ogg-vorbis

Keywords

FAQs

Package last updated on 01 Apr 2023

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