You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I run MacOS 10.11.5. Regarding the given examples I would like to know if they should work out of the box and what the expected audio output should be. Maybe I have interpreted the examples wrongly but the following code should produce no hearable output (or even silence the system if music is running) but actually results in "tr-tr-tr-tr-..." noises coming out of the speakers that get louder over time.
varcoreAudio=require('node-core-audio')varengine=coreAudio.createNewAudioEngine()engine.addAudioCallback(processAudio)functionprocessAudio(buffer){console.log('%d channels',buffer.length)console.log('Channel 0 has %d samples',buffer[0].length)for(varsample=0;sample<buffer[0].length;sample++){buffer[0][sample]=0.0}returnbuffer}
Reacted by Christian Benincasa, Alberto Romero and dave@backlit.studio
Activity
aromeronavia commentedon Aug 21, 2016
Check out the #26.
I copy/pasted the code and the 'tr tr tr' sound is gone (THANKS FUCKING GOD) haha.
You can continue your experiments Mr.