Closed
Bug 938450
Opened 11 years ago
Closed 11 years ago
decodeAudioData skips frames when resampling
Categories
(Core :: Web Audio, defect)
Tracking
()
RESOLVED
FIXED
mozilla28
People
(Reporter: karlt, Assigned: karlt)
References
Details
Attachments
(7 files)
3.05 KB,
patch
|
padenot
:
review+
|
Details | Diff | Splinter Review |
139.89 KB,
text/plain
|
padenot
:
feedback+
|
Details |
21.50 KB,
patch
|
ehsan.akhgari
:
feedback+
|
Details | Diff | Splinter Review |
7.10 KB,
patch
|
ehsan.akhgari
:
feedback+
|
Details | Diff | Splinter Review |
7.41 KB,
patch
|
Details | Diff | Splinter Review | |
4.99 KB,
patch
|
padenot
:
feedback+
|
Details | Diff | Splinter Review |
5.75 KB,
patch
|
Details | Diff | Splinter Review |
Adding MOZ_ASSERT(inSamples == audioData->mFrames); at http://hg.mozilla.org/mozilla-central/annotate/7b014f0f3b03/content/media/webaudio/MediaBufferDecoder.cpp#l365 fails when resampling between 48000 and 44100, which happens during test_mediaDecoding.html
Assignee | ||
Comment 1•11 years ago
|
||
Attachment #8340928 -
Flags: review?(paul)
Assignee | ||
Comment 2•11 years ago
|
||
Applies on top of patches in bug 937057. This of course makes test_mediaDecoding.html fail because it is testing that our resampling code doesn't change.
Assignee | ||
Comment 3•11 years ago
|
||
With this patch, the 48kHz tests fail comparisons with the expected files when run in a 44.1kHz context and the 44.1kHz tests fail these comparisons when run in a 48kHz context. Before this patch, all tests failed these comparisons when run in a 48kHz context.
Attachment #8340931 -
Flags: feedback?(paul)
Assignee | ||
Comment 4•11 years ago
|
||
I want to use compareBuffers in fixing test_mediaDecoding.html.
Attachment #8340932 -
Flags: feedback?(ehsan)
Assignee | ||
Comment 6•11 years ago
|
||
Some refactoring of test_mediaDecoding.html to make fixing it easier.
Assignee | ||
Comment 7•11 years ago
|
||
Attachment #8340936 -
Flags: feedback?(paul)
Assignee | ||
Comment 8•11 years ago
|
||
Comment 9•11 years ago
|
||
Comment on attachment 8340936 [details] [diff] [review] use an OfflineAudioContext to test decodeAudioData at different sample rates Review of attachment 8340936 [details] [diff] [review]: ----------------------------------------------------------------- ::: content/media/webaudio/test/test_mediaDecoding.html @@ +245,5 @@ > } > > function runTest(test, response, callback) { > var expectCallback = false; > + var cx = new OfflineAudioContext(1, 1, test.sampleRate); I would expect this to work, yes.
Attachment #8340936 -
Flags: feedback?(paul) → feedback+
Updated•11 years ago
|
Attachment #8340931 -
Flags: feedback?(paul) → feedback+
Updated•11 years ago
|
Attachment #8340928 -
Flags: review?(paul) → review+
Comment 10•11 years ago
|
||
Comment on attachment 8340934 [details] [diff] [review] reduce the number of offset parameters to compareChannels() Review of attachment 8340934 [details] [diff] [review]: ----------------------------------------------------------------- ::: content/media/webaudio/test/test_scriptProcessorNode.html @@ +94,5 @@ > is(e.outputBuffer.numberOfChannels, 2, "Correct number of channels for the output buffer"); > is(e.outputBuffer.length, 2048, "Correct length for the output buffer"); > is(e.outputBuffer.sampleRate, context.sampleRate, "Correct sample rate for the output buffer"); > > var firstNonZero = findFirstNonZeroSample(e.inputBuffer); Please add a test to make sure firstNonZero < 2048 for sanity checking.
Attachment #8340934 -
Flags: feedback?(ehsan) → feedback+
Updated•11 years ago
|
Attachment #8340932 -
Attachment is patch: true
Comment 11•11 years ago
|
||
Comment on attachment 8340932 [details] [diff] [review] rename compareBuffers to compareChannels & add compareBuffers Review of attachment 8340932 [details] [diff] [review]: ----------------------------------------------------------------- Nice!
Attachment #8340932 -
Flags: feedback?(ehsan) → feedback+
Assignee | ||
Comment 12•11 years ago
|
||
https://hg.mozilla.org/integration/mozilla-inbound/rev/9ba0897b47f9 https://hg.mozilla.org/integration/mozilla-inbound/rev/8a57fd3a56a9 https://hg.mozilla.org/integration/mozilla-inbound/rev/780a0671719b https://hg.mozilla.org/integration/mozilla-inbound/rev/91d16fd9fffc https://hg.mozilla.org/integration/mozilla-inbound/rev/00c412574447 https://hg.mozilla.org/integration/mozilla-inbound/rev/b962d48690b3 Haven't landed the resampling test in attachment 8340937 [details] [diff] [review] because that depends on bug 937057.
Flags: in-testsuite?
Comment 13•11 years ago
|
||
https://hg.mozilla.org/mozilla-central/rev/9ba0897b47f9 https://hg.mozilla.org/mozilla-central/rev/8a57fd3a56a9 https://hg.mozilla.org/mozilla-central/rev/780a0671719b https://hg.mozilla.org/mozilla-central/rev/91d16fd9fffc https://hg.mozilla.org/mozilla-central/rev/00c412574447 https://hg.mozilla.org/mozilla-central/rev/b962d48690b3
Status: ASSIGNED → RESOLVED
Closed: 11 years ago
Flags: in-testsuite? → in-testsuite+
Resolution: --- → FIXED
Target Milestone: --- → mozilla28
Assignee | ||
Updated•11 years ago
|
Flags: in-testsuite+ → in-testsuite?
Assignee | ||
Comment 14•11 years ago
|
||
https://hg.mozilla.org/integration/mozilla-inbound/rev/3296ae716782
Flags: in-testsuite? → in-testsuite+
You need to log in
before you can comment on or make changes to this bug.
Description
•