xk / node-sound Goto Github PK
View Code? Open in Web Editor NEWThe best sound library for Node.
Home Page: http://xk.github.com/node-sound/
License: Other
The best sound library for Node.
Home Page: http://xk.github.com/node-sound/
License: Other
No consigo compilarlo correctamente :(
Que version de Xcode es necesaria ? Utilizo i686-apple-darwin10-g++-4.2.1 , o es debido a otra cosa ???
Esta es la salida del error
Alguna idea de que hago mal ?
../src/sound.cc:323: error: integer constant is too large for ‘long’ type
../src/sound.cc:323: error: integer constant is too large for ‘long’ type
../src/sound.cc: In function ‘v8::Handlev8::Value Play(const v8::Arguments&)’:
../src/sound.cc:387: warning: format ‘%d’ expects type ‘int’, but argument 3 has type ‘OSStatus’
../src/sound.cc:404: warning: format ‘%d’ expects type ‘int’, but argument 3 has type ‘OSStatus’
../src/sound.cc:410: warning: format ‘%d’ expects type ‘int’, but argument 3 has type ‘OSStatus’
../src/sound.cc:415: warning: format ‘%d’ expects type ‘int’, but argument 3 has type ‘OSStatus’
../src/sound.cc: In function ‘void AQBufferCallback(void_, OpaqueAudioQueue_, AudioQueueBuffer_)’:
../src/sound.cc:482: warning: format ‘%d’ expects type ‘int’, but argument 3 has type ‘OSStatus’
../src/sound.cc:492: warning: format ‘%d’ expects type ‘int’, but argument 3 has type ‘OSStatus’
../src/sound.cc:509: error: cannot convert ‘ev_async_’ to ‘ev_loop_’ for argument ‘1’ to ‘void ev_async_send(ev_loop_, ev_async_)’
../src/sound.cc:520: warning: format ‘%d’ expects type ‘int’, but argument 3 has type ‘OSStatus’
../src/sound.cc: In function ‘v8::Handlev8::Value Pause(const v8::Arguments&)’:
../src/sound.cc:570: warning: format ‘%d’ expects type ‘int’, but argument 3 has type ‘OSStatus’
../src/sound.cc: In function ‘v8::Handlev8::Value Create(const v8::Arguments&)’:
../src/sound.cc:715: warning: format ‘%d’ expects type ‘int’, but argument 3 has type ‘OSStatus’
../src/sound.cc:734: warning: format ‘%d’ expects type ‘int’, but argument 3 has type ‘OSStatus’
../src/sound.cc:748: warning: format ‘%d’ expects type ‘int’, but argument 3 has type ‘OSStatus’
../src/sound.cc: In function ‘void renderSound(renderJob_)’:
../src/sound.cc:817: warning: format ‘%d’ expects type ‘int’, but argument 3 has type ‘OSStatus’
../src/sound.cc:825: warning: format ‘%d’ expects type ‘int’, but argument 3 has type ‘OSStatus’
../src/sound.cc:833: warning: format ‘%d’ expects type ‘int’, but argument 3 has type ‘OSStatus’
../src/sound.cc:850: warning: format ‘%d’ expects type ‘int’, but argument 3 has type ‘OSStatus’
../src/sound.cc:873: warning: format ‘%d’ expects type ‘int’, but argument 3 has type ‘OSStatus’
../src/sound.cc:892: warning: format ‘%d’ expects type ‘int’, but argument 3 has type ‘OSStatus’
../src/sound.cc: In function ‘void* renderThread(void_)’:
../src/sound.cc:1014: error: cannot convert ‘ev_async_’ to ‘ev_loop_’ for argument ‘1’ to ‘void ev_async_send(ev_loop_, ev_async_)’
../src/sound.cc: In function ‘void init(v8::Handlev8::Object)’:
../src/sound.cc:1208: error: invalid conversion from ‘void ()(ev_async, int)’ to ‘void ()(ev_loop, ev_async_, int)’
../src/sound.cc:1209: error: cannot convert ‘ev_async_’ to ‘ev_loop_’ for argument ‘1’ to ‘void ev_async_start(ev_loop_, ev_async_)’
../src/sound.cc:1242: warning: format ‘%d’ expects type ‘int’, but argument 3 has type ‘OSStatus’
Hello, I tried your module on node 0.4.12 on Mac OSX 10.6.7.
NHQ:xk-node-sound elenagragasin$ node-waf configure build clean
Setting srcdir to : /Users/elenagragasin/webdev/xk-node-sound
Setting blddir to : /Users/elenagragasin/webdev/xk-node-sound/build
Checking for program g++ or c++ : /usr/bin/g++
Checking for program cpp : /usr/bin/cpp
Checking for program ar : /usr/bin/ar
Checking for program ranlib : /usr/bin/ranlib
Checking for g++ : ok
Checking for node path : not found
Checking for node prefix : ok /usr/local
'configure' finished successfully (1.177s)
Waf: Entering directory `/Users/elenagragasin/webdev/xk-node-sound/build'
[1/2] cxx: sound.cc -> build/default/sound_1.o
[2/2] cxx_link: build/default/sound_1.o -> build/default/sound.node
Waf: Leaving directory `/Users/elenagragasin/webdev/xk-node-sound/build'
'build' finished successfully (7.270s)
'clean' finished successfully (0.005s)
In fact it did not build default/sound.node or any other file there.
Error: Cannot find module './build/default/sound'
at Function._resolveFilename (module.js:326:11)
at Function._load (module.js:271:25)
at require (module.js:355:19)
at Object.<anonymous> (/Users/elenagragasin/webdev/xk-node-sound/test-sinewave.js:46:12)
at Module._compile (module.js:411:26)
at Object..js (module.js:417:10)
at Module.load (module.js:343:31)
at Function._load (module.js:302:12)
at Array.<anonymous> (module.js:430:10)
at EventEmitter._tickCallback (node.js:126:26)
NHQ:xk-node-sound elenagragasin$
When accidentally unplugging my audio jack from earphones plug of my macbook (MBP 13", Mac OSX 10.6 SnowLeopard), whether while playing a sound or not, mutes node-sound and there is no way to get it back on, even when replugging the jack.
This happens the other way as well: when starting to play on computer default audio output and then plugging a jack definitely mutes node-sound.
The only way to get node-sound back on is to terminate my nodejs app and relaunch it.
No specific logs in my nodejs app console about this when happening.
I'm trying to couple node-sound with audiolib.js
But when I try to pass a buffer from audiolib to node-sound, the get no audio.
Must the buffer be 16 bit signed Int?
ExtAudioFile can't/shouldn't be run from more than a thread at the same time. So I'll have to swap ExtAudioFile API for AudioFile API, everywhere. It's only a problem when bufferify()ing (asynchronously) more than a file at the same time.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.