1.0.3 • Published 3 years ago
dmx2wav v1.0.3
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 dmx2wav
or
npm install --save dmx2wav
Usage 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