mirror of
https://gitlab.com/80486DX2-66/gists
synced 2025-01-10 17:32:05 +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))
|
appendFileSync(fileName, Buffer.from(audioData.buffer))
|
||||||
|
|
||||||
|
audioData = null
|
||||||
}
|
}
|
||||||
|
|
||||||
execSync(`ffmpeg -f u8 -ar ${FINAL_SAMPLE_RATE} -ac ${CHANNELS} -i ${fileName} output_${+new Date()}.wav`)
|
execSync(`ffmpeg -f u8 -ar ${FINAL_SAMPLE_RATE} -ac ${CHANNELS} -i ${fileName} output_${+new Date()}.wav`)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user