dmx2wav
v1.0.3
Published
Library to convert dmx format 3 audio (e.g. from Doom wads) to wave format
Readme
dmx2wav
A library for converting dmx format pcm audio files found in Doom wads to wave format.
Thanks to the following resources for helping me figure this out:
Installation
yarn add dmx2wavor
npm install --save dmx2wavUsage Example
Reading the file dspistol.dmx, converting to wave and writing out to dspistol.wav.
import { promises as fs } from 'fs'
import { dmx2wav } from 'dmx2wav'
(async () => {
const dmx = await fs.readFile('dspistol.dmx')
const wav = dmx2wav(dmx)
await fs.write('dspistol.wav', wav)
})()Build
yarn
yarn build