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

node-wwriff

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

node-wwriff

Streaming decoder for Wwise audio files

  • 2.0.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
2
increased by100%
Maintainers
1
Weekly downloads
 
Created
Source

node-wwriff

A port of ww2ogg. Provides a streaming decoder for Audiokinetik Wwise files to ogg packets.

Installation

npm install node-wwriff

Example

const fs = require('fs');
const ogg = require('ogg');
const { Decoder } = require('node-wwriff');

const encoder = new ogg.Encoder();
const decoder = new Decoder();
decoder.setCodebook("path_to_external_codebooks.bin");

fs.createReadStream("file.wem").pipe(decoder).pipe(encoder.stream());
encoder.pipe(fs.createWriteStream("file.ogg"));

See the examples directory for some example code.

API

Decoder class

The Decoder class is a Writable and Readable stream that accepts an wem file written to it and emits ogg_packet instances. These need to be piped into and ogg.Encoder.

Notes

This project is by no means a complete port of ww2ogg and lacks a lot of features (PRs welcome 😉), especially support for inline codebooks. It was also only tested with audio files from The Witcher 3: Wild Hunt and is probably incompatible with a lot of other files.

FAQs

Package last updated on 19 Feb 2020

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