Re: Recognize the Sound Source Position (Can't identify front and back sound).
Chris Robinson <[email protected]> Fri, 17 Jun 2011 14:38:10 -0700
| Newsgroups | gmane.comp.lib.openal |
|---|---|
| Message-ID | <[email protected]> |
On Friday, June 17, 2011 1:12:16 PM Matheus Bratfisch wrote: > Basic that is it. When I put the sound source in my Left, I can identify it > on my head phone, when I put it on left I can too, but when I put on front > or back. I can't identify if the sound is playing in my front or in my > back. Hi. The latest version of OpenAL Soft (the Linux version of OpenAL) doesn't really do any tricks to differentiate between front and back for stereo output. It only pans between the two speakers depending on the source's transformed position. To get a proper surround sound effect, you need to have a 4+ channel setup. The current Git version of OpenAL Soft, on the other hand, does implement an HRTF filter, which should provide front and back spatialization cues for headphones. It doesn't enable by default (as I've not found a way to tell the difference between plain stereo and headphones from PulseAudio, and I'm not sure of the performance impact), but it is fairly easy to turn on. Just add [general] hrtf = on to ~/.alsoftrc, and it will be enabled when output is 44100hz stereo (a warning will be printed to stderr if it gets disabled for some reason). You can also add frequency = 44100 to try and force 44100hz playback, if needed. _______________________________________________ Openal mailing list [email protected] http://opensource.creative.com/mailman/listinfo/openal