Skip to content

Commit

Permalink
compatibility for node 0.10.x
Browse files Browse the repository at this point in the history
  • Loading branch information
pabiagioli committed Aug 12, 2013
1 parent 413e7a8 commit 3379049
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/nodePortAudio.cpp
Expand Up @@ -349,7 +349,7 @@ static int nodePortAudioCallback(
if(data->readIdx == data->writeIdx) {
uv_work_t* req = new uv_work_t();
req->data = data;
uv_queue_work(uv_default_loop(), req, EIO_EmitUnderrun, EIO_EmitUnderrunAfter);
uv_queue_work(uv_default_loop(), req, EIO_EmitUnderrun, (uv_after_work_cb) EIO_EmitUnderrunAfter);
return paContinue;
}
*out++ = data->buffer[data->readIdx++];
Expand Down
1 change: 1 addition & 0 deletions src/nodePortAudio.h
Expand Up @@ -2,6 +2,7 @@
#include <node.h>
#include <v8.h>
#include <node_buffer.h>
#include <cstring>

v8::Handle<v8::Value> Open(const v8::Arguments& args);
v8::Handle<v8::Value> GetDevices(const v8::Arguments& args);

0 comments on commit 3379049

Please sign in to comment.