1
0
mirror of https://gitlab.com/80486DX2-66/gists synced 2024-11-09 21:32:02 +05:30

bytebeat-render.js: explicit GC

This commit is contained in:
Intel A80486DX2-66 2024-01-01 01:34:18 +03:00
parent 93ed0c917a
commit a46019a754
Signed by: 80486DX2-66
GPG Key ID: 83631EF27054609B

View File

@ -106,6 +106,8 @@ for (let buffer = 0; t < PRODUCT; buffer++) {
}
appendFileSync(fileName, Buffer.from(audioData.buffer))
audioData = null
}
execSync(`ffmpeg -f u8 -ar ${FINAL_SAMPLE_RATE} -ac ${CHANNELS} -i ${fileName} output_${+new Date()}.wav`)