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

Commit 1afc64a

Browse files
committed
Added a few comments
1 parent 15c2426 commit 1afc64a

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/callback.cc

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,8 @@ void JsPaStreamCallbackBridge::dispatchJSCallback() {
7979
v8::Isolate::GetCurrent(),
8080
m_bytesPerFrameOut * frameCount
8181
);
82-
82+
83+
// Create array of arguments and call the javascript callback
8384
LocalValue argv[] = {
8485
input,
8586
output,
@@ -98,6 +99,8 @@ void JsPaStreamCallbackBridge::dispatchJSCallback() {
9899
output->ByteLength()
99100
);
100101

102+
// Store the return result of the javascript callback
103+
// so it be sent to the PaStreamCallback function
101104
m_callbackResult = LocalizeInt(callbackReturn);
102105

103106
uv_mutex_unlock(&async_lock);

0 commit comments

Comments
 (0)