How to use the flac-bindings.FileEncoder function in flac-bindings

To help you get started, weโ€™ve selected a few flac-bindings examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github dmooney65 / fmradio / app / src / audio / player.js View on Github external
const record = () => {
        let recordingsPath = userSettings.get('recordingsPath');
        if (!recording) {
            let freqText = require('../fmRadio.js').getFreqText();
            fileWriter = new flac.FileEncoder({
                samplerate: 48000, bitsPerSample: 16, compressionLevel: 6, file: path.join(recordingsPath, freqText.replace(' ', '') + '_' + getDateStr() + '_recording.flac')
            });
            recording = true;
        } else {
            stopRecording();
        }
    };

flac-bindings

libflac bindings to node.js with easy to use API

ISC
Latest version published 5 months ago

Package Health Score

63 / 100
Full package analysis