Ambiera ForumDiscussions, Help and Support. |
|
|
|||||
|
I've searched google and these forums without any good specific answer which was strange. Anyway, I'm trying to add a water sound effect to a fountain I've got in my game but I'm having all sorts of trouble with it. When I use;
It seems to play everywhere, even if I add a "maxdistance" too. Without the "mindistance" altogether, the sound doesn't play at all. So how do I play a sound which has a certain radius around an object? Much appreciated for anyones help :) |
||||
|
Hi, how the min and maxDistance work can be a bit confusing. This page shows how it is working: http://msdn.microsoft.com/en-us/library/bb147197(VS.85).aspx altough the image looks like the max distance limits this. The max distance doensn't limit the radius. If you want more intuitive control over the sound distance, you can use the ESEO_LINEAR_ROLLOFF option so that irrKlang attenuates the volume linearly between min and max distance. |
||||
|
wrote: Hi, how the min and maxDistance work can be a bit confusing. This page shows how it is working: http://msdn.microsoft.com/en-us/library/bb147197(VS.85).aspx altough the image looks like the max distance limits this. The max distance doensn't limit the radius. If you want more intuitive control over the sound distance, you can use the ESEO_LINEAR_ROLLOFF option so that irrKlang attenuates the volume linearly between min and max distance. That link was a good read and I understand what I need to do now, thanks. However, I'm unsure of how to access the DS3D min and max commands. I've looked through the commands from "irrklang::" but that option doesn't appear there :( Thanks for the help so far! |
||||
|
The min and max commands in DirectSound directly correlate to the setMinDistance in irrKlang. It's basically the same. |
|