Non-Directional Sounds


25-09-2008 14:41:16

Hi, I've been playing around with OgreAL for the past couple of weeks and it seems to work great for creating directional sounds with physical locations. But I was wondering if there is any way to create a non-directional source, wherein the sound would play at equal volume through all the speakers.

I've messed around with attaching a sound directly to the camera node when the listener object is also attached, but this seems to give a large bias toward the front speakers. Using "setRelativeToListener(true)" seems to achieve a similar result.

This functionality seems like something that would be common for creating things like rain effects where the sound should be coming from all around you at equal volumes. So I figure there should be some sort of mechanism in OgreAL to handle it, but I haven't been able to find it yet. Does such a thing exist?


25-09-2008 17:38:08

I guess the easiest way would be to create a stereo/multichannel sound file and use that, if you're using a mono sound it will automatically get spatialised although the following code should do something similar:sound->setRelativeToListener(true);
sound->setPosition(Vector3(0, 0, 0));

I guess?