AudioNet / node-core-audio

Bindings for PortAudio giving JavaScript access to sound card samples (mostly unmaintained)
MIT License
330 stars 67 forks source link

sleep() not found, Visual Studio 2015 #46

Closed swyphcosmo closed 9 years ago

swyphcosmo commented 9 years ago

Building the module on Windows 10 with Visual Studio 2015, I get the following error:

..\NodeCoreAudio\AudioEngine.cpp(421): error C3861: 'sleep': identifier not found

With this compiler setup, the #ifdef check to see if the build is occurring Windows (#ifdev __WINDOWS__, line 418) doesn't work. The statement should instead look for the _WIN32 define, or check both:

#if defined( __WINDOWS__ ) || defined( _WIN32 )