WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
98294
Spatialized panning renders incorrectly with USE_CONCATENATED_IMPULSE_RESPONSES
https://bugs.webkit.org/show_bug.cgi?id=98294
Summary
Spatialized panning renders incorrectly with USE_CONCATENATED_IMPULSE_RESPONSES
Chris Rogers
Reported
2012-10-03 13:17:19 PDT
In a recent WebKit mac-port build or Safari 6 try:
http://chromium.googlecode.com/svn/trunk/samples/audio/simple.html
The spatialization is rendering incorrectly (compare to Chrome which doesn't use USE_CONCATENATED_IMPULSE_RESPONSES). The Doppler demo also illustrates serious problems where up/down are scrambled:
http://chromium.googlecode.com/svn/trunk/samples/audio/doppler.html
This may also be an issue on the GTK port which builds with USE_CONCATENATED_IMPULSE_RESPONSES
Attachments
Patch
(56.41 KB, patch)
2012-10-04 19:20 PDT
,
Hajime Morrita
no flags
Details
Formatted Diff
Diff
Merged impulse responses
(240.04 KB, audio/wav)
2012-10-30 08:26 PDT
,
Philippe Normand
no flags
Details
Show Obsolete
(1)
View All
Add attachment
proposed patch, testcase, etc.
Hajime Morrita
Comment 1
2012-10-04 19:20:51 PDT
Created
attachment 167228
[details]
Patch
Hajime Morrita
Comment 2
2012-10-04 19:22:30 PDT
Comment on
attachment 167228
[details]
Patch Oops. Wrong bug. Sorry for the noise.
Philippe Normand
Comment 3
2012-10-15 00:13:57 PDT
I've been busy on other things lately but I can maybe find time to check it this week. So Chris, if you disable concatenated impulse responses on mac it works as expected?
Chris Rogers
Comment 4
2012-10-15 10:25:18 PDT
(In reply to
comment #3
)
> I've been busy on other things lately but I can maybe find time to check it this week. So Chris, if you disable concatenated impulse responses on mac it works as expected?
I didn't try, since it would require a little more tweaking for build, to copy the resources into the right location to properly test. But, I'm pretty sure it would work as expected since then it would be going through the same path as Chrome, which is still working correctly. I thought I helped you guys test this when we switched you over to concatenated, and I *seem* to remember it was ok. But my memory might be wrong. Whatever has happened, the impulses now seem to be "scrambled" somehow...
Philippe Normand
Comment 5
2012-10-16 03:47:16 PDT
I can confirm the rendering indeed differs between GTK and Chromium. Noticeable especially with the doppler example, when the red dot approaches the green dot there is some kind of of scrambling, not sure how to describe it.
Philippe Normand
Comment 6
2012-10-16 04:00:27 PDT
And that disabling concatenated impulse responses fixes the issue. Not sure I'll have time to work on this issue this week though, busy on other tasks :(
Jer Noble
Comment 7
2012-10-16 09:08:06 PDT
I regenerated the Composite.wav file in <
http://trac.webkit.org/changeset/105421
>, to fix <
https://bugs.webkit.org/show_bug.cgi?id=76397
>. At the time, it appeared the azimuth and elevation orders were backwards. Has anything in HRTFElevation.cpp changes which might impact the order in which things are pulled from the composite file?
Chris Rogers
Comment 8
2012-10-16 11:50:15 PDT
(In reply to
comment #7
)
> I regenerated the Composite.wav file in <
http://trac.webkit.org/changeset/105421
>, to fix <
https://bugs.webkit.org/show_bug.cgi?id=76397
>. At the time, it appeared the azimuth and elevation orders were backwards. > > Has anything in HRTFElevation.cpp changes which might impact the order in which things are pulled from the composite file?
Not that I'm aware of. You could try an "svn log" of this and associated files. I can't remember if I ever verified the result of <
http://trac.webkit.org/changeset/105421
>, so it might have been a problem even then.
Philippe Normand
Comment 9
2012-10-30 08:26:34 PDT
Created
attachment 171457
[details]
Merged impulse responses I noticed that in the previous file the elevations were not correctly ordered. In HRTFElevation, printing the azimuth, elevation and calculated index, for elevation and azimuth = 0, the index is 0. For elevation=15 and azimuth=15 the index is 11 and so on. In the previous Composite.wav file the elevations for 315, 330 and 345 were added at the wrong indexes, I think. Here's how I generated this file: AUDIO_DIR="Source/WebCore/platform/audio/resources" sox $( \ for azimuth in {0..23}; do \ for elevation in 0 15 30 45 60 75 90 315 330 345; do \ printf "$AUDIO_DIR/IRC_Composite_C_R0195_T%03d_P%03d.wav\n" "$(expr $azimuth \* 15)" "$elevation"; \ done; \ done;) \ Composite.wav Can you please test again with this file Chris?
Chris Rogers
Comment 10
2012-10-30 16:26:15 PDT
(In reply to
comment #9
)
> Created an attachment (id=171457) [details] > Merged impulse responses > > I noticed that in the previous file the elevations were not correctly ordered. In HRTFElevation, printing the azimuth, elevation and calculated index, for elevation and azimuth = 0, the index is 0. For elevation=15 and azimuth=15 the index is 11 and so on. In the previous Composite.wav file the elevations for 315, 330 and 345 were added at the wrong indexes, I think. Here's how I generated this file: > > AUDIO_DIR="Source/WebCore/platform/audio/resources" > sox $( \ > for azimuth in {0..23}; do \ > for elevation in 0 15 30 45 60 75 90 315 330 345; do \ > printf "$AUDIO_DIR/IRC_Composite_C_R0195_T%03d_P%03d.wav\n" "$(expr $azimuth \* 15)" "$elevation"; \ > done; \ > done;) \ > Composite.wav > > Can you please test again with this file Chris?
The new file sounds good -- I just tested it in Safari 6
Philippe Normand
Comment 11
2012-10-31 00:55:05 PDT
Committed
r132993
: <
http://trac.webkit.org/changeset/132993
>
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug