News for hackers. Stuff that matters.
Re:Binaural Sound with the Web Audio API by tonetheman on Saturday December 27, 2014 @04:21PM (#8803977)
Yup not working for me either :( Version 39.0.2171.95 m

Uncaught NotSupportedError: Failed to set the 'buffer' property on 'ConvolverNode': The buffer sample rate of 44100 does not match the context rate of 48000 Hz.

hpl.init_convolver main.js:464 hpl.init main.js:506 main.js:559 (anonymous function)

Re:Binaural Sound with the Web Audio API by kabla on Saturday December 27, 2014 @04:25PM (#8803993)
Well, this is a shame.. Apparently the sample rate of the AudioContext (for some people 48 kHz) isn't definable (it should be 44.1 kHz here), which makes this a tough thing to fix. For me, it works in osx but not in windows 8 (bootcamp).

I found this: https://github.com/WebAudio/web-audio-api/issues/300

Apparently it's not implemented yet?

Re:Binaural Sound with the Web Audio API by kapkapkap on Saturday December 27, 2014 @02:22PM (#8803604)
A great demo of binaural sound - https://www.youtube.com/watch?v=PKdDA_jhgX8
Re:Binaural Sound with the Web Audio API by mrb on Saturday December 27, 2014 @05:13PM (#8804152)
This is insanely great! Now, imagine if binaural audio was combined with an accelerometer sensor (in the earbud/headphone) so that when you turn your head, the sounds' origins would be adjusted in real time to reflect your new head position. This would be awesome for video games and movies.

To make this work, you would need to record the location of every sound. Easy to do for a video game (where the software knows the exact object or person emitting a sound). But it would be harder for movies, as this sounds localization data would need to be captured on set and handled during all post production work.

I did a little research and a field known as ambisonics (http://en.m.wikipedia.org/wiki/Ambisonics) generalizes this concept to more than 2 speakers. Now that I think about it I remember that the guy behind the xiph.org videos debunking digital audio myths lamenting that not enough research was being done on ambisonics.

Re:Binaural Sound with the Web Audio API by corysama on Saturday December 27, 2014 @05:57PM (#8804285)
Binaural + Binocular + VR headset makes for a "Being John Malkovich"/"Strange Days" recorded experience.

https://www.youtube.com/watch?v=oXaxVLNMIxU

Re:Binaural Sound with the Web Audio API by hkailahi on Saturday December 27, 2014 @04:25PM (#8803991)
I just got my haircut after listening to this, and it was creepily similar.
Re:Binaural Sound with the Web Audio API by pvaldes on Saturday December 27, 2014 @08:36PM (#8804766)
Not directly related, but curiously I'd noticed today that cl-binaural for common lisp is not anymore in quicklisp. I wonder why.
Re:Binaural Sound with the Web Audio API by cypher543 on Saturday December 27, 2014 @02:16PM (#8803584)
Doesn't work for me in Chrome 39:

> main.js:129 Uncaught SyntaxError: Unexpected token var