Closed Bug 586612 Opened 12 years ago Closed 12 years ago

HTML5 <audio>: no playback of WAV data URI if shorter than 370ms

Categories

(Core :: Audio/Video, defect)

x86
Windows XP
defect
Not set
normal

Tracking

()

VERIFIED FIXED

People

(Reporter: walther, Unassigned)

References

()

Details

Attachments

(1 file)

User-Agent:       Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US) AppleWebKit/534.3 (KHTML, like Gecko) Chrome/6.0.472.25 Safari/534.3
Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.2.8) Gecko/20100722 Firefox/3.6.8

There seems to be a regression regarding WAV data URI playback, which looks like a minimum-buffer-size issue. 

Such audio doesn't play until a minimum size of approx. 370ms is reached.

This is a showstopper for all applications doing fine-grained audio manipulation.

Reproducible: Always

Steps to Reproduce:
1. Embed the <audio> with short WAV (16-bit PCM, 22050Hz, mono) data URI in a web page.
2. Load page in Firefox 3.6.8 for Windows
3. Listen to sound
Actual Results:  
no sound output

Expected Results:  
sound playback

<audio src="data:audio/x-wav;base64,UklGRiIAAABXQVZFZm10IBAAAAABAAEAIlYAAESsAAACABAAZGF0Yf7///8AAAAANwA6AD0APwBCAEUARwBJAEwATgBQAFEAUwBVAFcAWABZAFsAXABdAF8AYABfAF4AXQBcAFwAWwBaAFgAVQBTAFEATwBNAEkARQBCAD8AOwA4ADUAMwAwAC4AKwAnACMAIAAcABkAFgARAAwABwADAP//+//3//L/7f/o/+P/3//b/9f/0//P/8z/yf/G/8P/wP+9/5r/ev9b/0L/Lf8a/wr///71/uz+6f7l/uT+5P7l/un+7/71/v3+Bv8O/xj/JP8z/z//Tf9b/2j/df+E/5D/nf+q/7j/xf/U/+L/8f/+/wsAGgArADwATgBeAG0AfQCOAJ4AsADCANQA5gD4AAkBGwEqATgBSgFZAWcBeAGGAZYBowGvAboBxQHQAdoB4wHqAfMB+QH/AQUCCAILAg8CEAIOAg4CCQICAvwB9AHrAeIB1wHLAbwBrAGaAYgBdAFgAUoBNAEdAQMB6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pvaP+JL5bf1R/joBLAG6AIP9lvkZ9uDyDvF28PHwdfKM9hn8FgR/DZEXyyE5K+Ez3zlePZY/TEBOQNw+izzaOe832Df3OEE6LTwPPwhB5UNLRWZFBUO7Pzo79DPcLOAjtxugFHUOYAsWCPYF+wbxB/cJag2dDc4OpQ26DacIdgalA9X+1//q/of9BP7AAdwBmw0TCnALrgXj+GjzQ+SG2WnIAsBQr5moL566l/WX6KDTqCKy+bz2u//FYcdTyzXMVMsszGbKQck=" autoplay>
Version: unspecified → 3.6 Branch
Component: General → Video/Audio
Product: Firefox → Core
QA Contact: general → video.audio
Version: 3.6 Branch → 1.9.2 Branch
No Sound on 1.9.2 and Trunk (on WinXP).
No Sound with Google Chrome 6.0.490.0 (Official Build 55537).
There's Sound with Opera 10.70 build 3477.
Severity: major → normal
Attached file testcase
Markus's testcase.

This works for me on trunk with Windows 7, so I can't reproduce this.
wfm with Seamonkey trunk on win7
Still no sound with Firefox 3.6.10 on WinXP.

This is a somewhat recent regression, since it definitely used to work for small audio fragments on Firefox / WinXP.

Also I don't quite understand the relevance of Win 7 - surely one would aim for cross-platform audio, no? XtC4UaLL confirmed above it's a bug for WinXP.

So I renew my plea to work on this bug.
Blocks: 581321
Windows 7 is just what I have available to test on.  It's not clear from the original bug report that the problem is XP-specific, and the same code is used on all Windows versions, so it's useful to test against multiple versions to narrow down the problem.I suspect this is a regression from bug 484814, but I'll need to find a Windows XP machine to test on to be sure.  It's likely that the trunk fix in bug 564734 is also needed on the branch.
(In reply to comment #5)
> It's likely that the trunk fix in bug 564734 is also needed on the branch.
I can confirm that this has been fixed on Trunk within
http://hg.mozilla.org/mozilla-central/pushloghtml?fromchange=2108d2458719&tochange=85e10f4b4a9e what includes Bug 564734.
I confirm that there is a bug in version 3.6.12
In version 4.0b7 has fixed
(In reply to comment #7)
> I confirm that there is a bug in version 3.6.12
> In version 4.0b7 has fixed

WFM on Win7 native [Mozilla/5.0 (Windows NT 6.1; WOW64; rv:2.0b10pre) Gecko/20110120 Firefox/4.0b10pre] and on WinXP (in VM) [Mozilla/5.0 (Windows NT 5.1; rv:2.0b9) Gecko/20100101 Firefox/4.0b9].

Still doesn't work in 3.6, but we only take security & stability fixes on non-trunk branches, so resolving fixed by bug 564734 as per comment 6.
Status: UNCONFIRMED → RESOLVED
Closed: 12 years ago
Resolution: --- → FIXED
Version: 1.9.2 Branch → Trunk
Duplicate of this bug: 599430
Status: RESOLVED → VERIFIED
You need to log in before you can comment on or make changes to this bug.