Ambiera ForumDiscussions, Help and Support. |
|
|
|||||
|
Hello, First of all, I just want to tell you how awesome irrklang is. I had been using NAudio in my project, and irrklang is better in every way. It's wonderful. I'm working on a small 2D program, and I have an object that perpetually moves from the left side of the screen to the right side of the screen. I want to either make the sound pan from left to right or apply a doppler effect to it as it goes by. The program has a static camera, so the listener position should never have to change. For the panning, I'm using this code with irrklang: float panningPosition = (2 * (-(float)objectXposition / (float)width)) + 1; This gives me the panning effect, but it's not a smooth transition. The sound either plays in the left, center, or right speaker. I'm looking for a smooth panning/doppler effect for the sound as the object goes by. Can anyone help me with implementing this? Thanks a lot! |
||||
|
Are you using DirectSound as outputput method? I think it has the smoothest pan, if you do it using 3d positions and not the setPan() functionality. Not sure if this isn't what you are doing anyway.. :) |
|