3D audio stereo incorrect panning

Bug #444208 reported by et1337
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Panda3D
Fix Released
Undecided
rdb

Bug Description

As far as I can tell, Audio3DManager is incorrectly calculating the vectors for determining 3D audio stereo panning.

If someone can confirm this bug, it's an easy fix in the python code. I patched it myself in two lines.

Replace Audio3DManager.py lines 268-269 with the following:

forward = self.root.getRelativeVector(self.listener_target, VBase3(0,1,0))
up = self.root.getRelativeVector(self.listener_target, VBase3(0,0,1))

The original code just had self.root and self.listener_target switched around.

For the record, I'm on Vista x64, but I also had the issue on 32-bit XP. Panda3D 1.6.2.

Revision history for this message
rdb (rdb) wrote :

Hi,

Do you happen to have some sample code that shows the problem, so that we can make sure that this fix applies to all cases? I'm not sure if I should check this in blindly as the bug might be dependent on more factors.

Thank you!

Revision history for this message
et1337 (et1337) wrote : Re: [Bug 444208] Re: 3D audio stereo incorrect panning

Sure do, it's attached in a zip file. Try running "buggy-audio.py" with
headphones on. The sound is coming from the box, and when you rotate the
camera around the box, it sounds like it's coming from different directions,
when really, the box is still right in front of the camera. Then try
"working-audio.py" and see the difference.
"working-audio.py" uses my patched version of Audio3DManager, found in
"PatchedAudio3DManager.py".

Thanks for taking the time to look at this.

On Wed, Oct 14, 2009 at 2:37 AM, Reinier de Blois <email address hidden>wrote:

> Hi,
>
> Do you happen to have some sample code that shows the problem, so that
> we can make sure that this fix applies to all cases? I'm not sure if I
> should check this in blindly as the bug might be dependent on more
> factors.
>
> Thank you!
>
> --
> 3D audio stereo incorrect panning
> https://bugs.launchpad.net/bugs/444208
> You received this bug notification because you are a direct subscriber
> of the bug.
>
> Status in Panda3D: New
>
> Bug description:
> As far as I can tell, Audio3DManager is incorrectly calculating the vectors
> for determining 3D audio stereo panning.
>
> If someone can confirm this bug, it's an easy fix in the python code. I
> patched it myself in two lines.
>
> Replace Audio3DManager.py lines 268-269 with the following:
>
> forward = self.root.getRelativeVector(self.listener_target, VBase3(0,1,0))
> up = self.root.getRelativeVector(self.listener_target, VBase3(0,0,1))
>
> The original code just had self.root and self.listener_target switched
> around.
>
> For the record, I'm on Vista x64, but I also had the issue on 32-bit XP.
> Panda3D 1.6.2.
>

Revision history for this message
rdb (rdb) wrote :

Sorry for not getting around to this earlier. I've applied your fix, thank you for reporting the bug and tracking it down.

Changed in panda3d:
assignee: nobody → rdb (rdb)
milestone: none → 1.8.1
status: New → Fix Committed
rdb (rdb)
Changed in panda3d:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.