ramirezd42 / node-audio

Graph-based audio api for Node.js based on LabSound and JUCE
87 stars 7 forks source link

NodeAudio.cleanupAudioContext(), PluginNode instance .shutdown() #11

Closed eliot-akira closed 6 years ago

eliot-akira commented 6 years ago

I'm working on an Electron application that bundles node-audio for hosting VST/AudioUnit plugins. During development, libc++abi.dylib was throwing a mysterious error on app exit. The solution was to bind these clean-up methods, to be able to exit the application "cleanly" by shutting down any plugin instance, disconnecting all nodes, and cleaning up the audio context.

ramirezd42 commented 6 years ago

looks good to me! thanks