Closed ismay closed 6 years ago
The wav file was generated with wavefile 5 with this script:
const fs = require('fs');
const path = require('path');
const { fromImage, toWav } = require('./lib');
const imagePath = path.join(__dirname, 'test', 'fixtures', 'image-to-float', 'input.png');
const imageBuffer = fs.readFileSync(imagePath);
fromImage(imageBuffer).then(floats => toWav(floats)).then(wavBuffer => {
fs.writeFileSync(path.join(__dirname, 'input.wav'), wavBuffer)
});
My mistake, I forgot to call toBuffer(). Sorry!
With the latest version I'm getting a
Not a supported format.
error when attempting to read a 32f, mono wav.Build log here Code that's failing here Code for failing test here
I didn't see any tests for reading 32f wavs, is this currently supposed to be functional?