Skip to content
This repository has been archived by the owner on Jun 27, 2022. It is now read-only.

Commit

Permalink
Added a few comments
Browse files Browse the repository at this point in the history
  • Loading branch information
jacobcpeters committed Jun 28, 2016
1 parent 15c2426 commit 1afc64a
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/callback.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand All @@ -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);
Expand Down

0 comments on commit 1afc64a

Please sign in to comment.