Update index.js
Browse files25 unmodified lines26272829293031327 unmodified lines4041424344454625 unmodified linesfunction webmToMp3(inputBuffer) { return new Promise((resolve, reject) => { // Membuat stream dari buffer const inputStream = new PassThrough(); const inputStream = new stream.PassThrough(); inputStream.end(inputBuffer);
// Membuat buffer output7 unmodified lines outputBuffer = Buffer.concat([outputBuffer, chunk]); }) .on('end', () => resolve(outputBuffer)) .output(stream.PassThrough()) // Menambahkan output stream .run(); });}index.js+2-1