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:
parent
93ed0c917a
commit
a46019a754
@ -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`)
|
||||
|
Loading…
Reference in New Issue
Block a user