From 1afc64adf2414a9d5b6af0987205c44610923bf6 Mon Sep 17 00:00:00 2001 From: Jacob Peters Date: Tue, 28 Jun 2016 01:01:16 -0400 Subject: [PATCH] Added a few comments --- src/callback.cc | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/callback.cc b/src/callback.cc index c1fa790..3568257 100644 --- a/src/callback.cc +++ b/src/callback.cc @@ -79,7 +79,8 @@ void JsPaStreamCallbackBridge::dispatchJSCallback() { v8::Isolate::GetCurrent(), m_bytesPerFrameOut * frameCount ); - + + // Create array of arguments and call the javascript callback LocalValue argv[] = { input, output, @@ -98,6 +99,8 @@ void JsPaStreamCallbackBridge::dispatchJSCallback() { output->ByteLength() ); + // Store the return result of the javascript callback + // so it be sent to the PaStreamCallback function m_callbackResult = LocalizeInt(callbackReturn); uv_mutex_unlock(&async_lock);