Hi, Just a quick update.
node-sdlmixer uses async.h orignally from node-sqlite3 which was already ported to node 0.6.x. (this originally provided the ev_async_send support I use) So I used https://github.com/developmentseed/node-sqlite3/blob/master/src/async.h as part of my 'porting' effort. Since I tried to keep both 0.4.x and 0.6.x support in node-sdlmixer you can see them both at https://github.com/japj/node-sdlmixer/blob/master/src/async_ev.h and https://github.com/japj/node-sdlmixer/blob/master/src/async_uv.h The next thing I found was the following gist for eio_custom handling: https://gist.github.com/1368935 (thanks to TooTallNate) The only thing I have no 'decent' workaround for is that node-waf 0.4.x builds "build/default/node-sdlmixer.node" but 0.6.x builds "build/Release/node-sdlmixer.node". As a result I have some clumsy 'detection' (which I am not so happy about) to load the right addon depending on nodejs version. The resulting work compiles ok and plays sound, but unfortunately I get a SEGV which I haven't been able to pinpoint (gdb just seems to hang if I try to debug it) Best regards, Jeroen Janssen On Mar 13, 9:10 am, Jeroen Janssen <[email protected]> wrote: > Hi, > > I recently got a request to port my node-sdlmixer module to node 0.6 > and I was wondering if there is some porting 'howto' for C++ addons > from 0.4 to 0.6? > > My module currently uses: > * ev_async_init > * ev_async_start > * ev_ref > * ev_unref > * ev_async_send > * ev_invoke > * ev_async_stop > * EV_DEFAULT_UC_ > * eio_custom > * eio_req > * EIO_PRI_DEFAULT > > * wscript to build the addon > > It seemshttps://github.com/joyent/node/wiki/API-changes-between-v0.4-and-v0.6 > mostly only talks about the javascript side of things, but I can not > find any C++ API changes in there (i.e. the things added throughlibuv). > > Best regards, > > Jeroen Janssen -- Job Board: http://jobs.nodejs.org/ Posting guidelines: https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines You received this message because you are subscribed to the Google Groups "nodejs" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/nodejs?hl=en?hl=en
