web-audio-api icon indicating copy to clipboard operation
web-audio-api copied to clipboard

Does not build with node 12.10.0

Open jpedrick opened this issue 6 years ago • 2 comments

Running npm install web-audio-engine with node v12.10.0

npm install --save web-audio-engine
npm WARN deprecated [email protected]: This package has been renamed 'window-function'. The API is otherwise the same. Please switch.

> [email protected] install /home/jpedrick/Development/node_modules/speaker
> node-gyp rebuild

make: Entering directory '/home/jpedrick/Development/node_modules/speaker/build'
  CC(target) Release/obj.target/output/deps/mpg123/src/output/alsa.o
../deps/mpg123/src/output/alsa.c: In function ‘initialize_device’:
../deps/mpg123/src/output/alsa.c:78:16: warning: comparison of integer expressions of different signedness: ‘int’ and ‘long unsigned int’ [-Wsign-compare]
  for (i = 0; i < NUM_FORMATS; ++i) {
                ^
../deps/mpg123/src/output/alsa.c: In function ‘get_formats_alsa’:
../deps/mpg123/src/output/alsa.c:201:16: warning: comparison of integer expressions of different signedness: ‘int’ and ‘long unsigned int’ [-Wsign-compare]
  for (i = 0; i < NUM_FORMATS; ++i) {
                ^
  AR(target) Release/obj.target/deps/mpg123/liboutput.a
  COPY Release/liboutput.a
  CXX(target) Release/obj.target/binding/src/binding.o
In file included from ../src/node_pointer.h:6,
                 from ../src/binding.cc:5:
../../nan/nan.h: In function ‘void Nan::AsyncQueueWorker(Nan::AsyncWorker*)’:
../../nan/nan.h:2298:62: warning: cast between incompatible function types from ‘void (*)(uv_work_t*)’ {aka ‘void (*)(uv_work_s*)’} to ‘uv_after_work_cb’ {aka ‘void (*)(uv_work_s*, int)’} [-Wcast-function-type]
     , reinterpret_cast<uv_after_work_cb>(AsyncExecuteComplete)
                                                              ^
../src/binding.cc: In function ‘Nan::NAN_METHOD_RETURN_TYPE {anonymous}::Open(Nan::NAN_METHOD_ARGS_TYPE)’:
../src/binding.cc:30:38: error: no matching function for call to ‘v8::Value::Int32Value()’
   ao->channels = info[1]->Int32Value(); /* channels */

jpedrick avatar Sep 14 '19 22:09 jpedrick

It seem support to v10.x.x. I tested with 10.16.3

cowboybkit avatar May 03 '20 02:05 cowboybkit

Also seems to have issues with node 14.x LTS

oclyke avatar May 03 '21 21:05 oclyke