Closed
Bug 1215096
Opened 9 years ago
Closed 9 years ago
off-by-one error in playback position of resampled buffers
Categories
(Core :: Web Audio, defect, P2)
Tracking
()
RESOLVED
FIXED
mozilla44
Tracking | Status | |
---|---|---|
firefox44 | --- | fixed |
People
(Reporter: karlt, Assigned: karlt)
References
Details
Attachments
(1 file)
(deleted),
patch
|
padenot
:
review+
|
Details | Diff | Splinter Review |
"The behavior of an expression of the form E1 op = E2 is equivalent to E1 = E1
op E2 except that E1 is evaluated only once", which means that the subtraction
of -= is happening before conversion from double to unsigned int.
The "+ 0.5" subtracted before the truncation toward zero causes rounding
to nearest minus one, except when nearest is zero.
http://hg.mozilla.org/mozilla-central/annotate/e193b4da0a8c/dom/media/webaudio/AudioBufferSourceNode.cpp#l273
Assignee | ||
Comment 1•9 years ago
|
||
Attachment #8674596 -
Flags: review?(padenot)
Updated•9 years ago
|
Attachment #8674596 -
Flags: review?(padenot) → review+
Updated•9 years ago
|
Rank: 20
Priority: -- → P2
Comment 3•9 years ago
|
||
Status: ASSIGNED → RESOLVED
Closed: 9 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla44
Assignee | ||
Comment 4•9 years ago
|
||
Flags: in-testsuite+
You need to log in
before you can comment on or make changes to this bug.
Description
•