Hack BufferSource.dispose for recording

This commit is contained in:
metalex9
2020-06-18 21:49:01 -05:00
parent 232c2c938a
commit 3db9b5881a

View File

@@ -46,6 +46,7 @@ const renderOffline = (piece, durationInSeconds) => {
hackFn(Tone, 'disconnect', Tone);
hackFn(window.AudioBufferSourceNode.prototype, 'disconnect');
hackFn(Tone.BufferSource.prototype, 'dispose');
return provider
.provide(piece.sampleNames, offlineContext)