Closed Bug 787789 Opened 12 years ago Closed 12 years ago

Wave file (8-bit PCM) plays white noise in <audio>

Categories

(Core :: Audio/Video, defect)

15 Branch
PowerPC
Linux
defect
Not set
normal

Tracking

()

VERIFIED DUPLICATE of bug 779187

People

(Reporter: marcus, Unassigned)

Details

User Agent: Mozilla/5.0 (X11; Linux ppc; rv:7.0.1) Gecko/20111011 Firefox/7.0.1 SeaMonkey/2.4.1
Build ID: 20111011103739

Steps to reproduce:

Went to test page <http://mc.pp.se/audiotest.html> using FireFox 15.0 on Ubuntu/PPC.


Actual results:

White noise was played.  Presumably the 8-bit samples were padded in the wrong end when converting to 16-bit.


Expected results:

A siren sound should have played.  The sound plays correctly in SeaMonkey 2.4.1.
Component: Untriaged → Video/Audio
Product: Firefox → Core
Hardware: Other → PowerPC
Summary: Endian bug with 8-bit PCM in <audio> → Wave file (8-bit PCM) plays white noise in <audio>
Version: 7 Branch → 15 Branch
Can you please test Aurora (17) and let me know if this is still an issue?
Hi. Where can I found a Linux/PPC download of 17?  Thanks.
I'm not aware of a build, sorry.  It looks like 15 is the latest available in the Debian package repo.

Digging through the changes made recently, I'm certain that this is fixed by bug 779187, which will become available in Firefox 16.  The code in nsWaveReader converts U8 samples into the internal audio format (float32), but the audio backend was opened explicitly as little endian rather than native endian, which bug 779187 fixed.
Status: UNCONFIRMED → RESOLVED
Closed: 12 years ago
Resolution: --- → DUPLICATE
(In reply to Matthew Gregan [:kinetik] from comment #3)
> Digging through the changes made recently, I'm certain that this is fixed by
> bug 779187, which will become available in Firefox 16.

Sorry, in Firefox 17.  I'll nominate it for backporting to 16, but as none of the tier 1 platforms are big endian it may not be approved.
Ok, sounds great!  Thanks.
Resolution: DUPLICATE → INVALID
Oops, sorry, don't know why it changed the resolution...
Resolution: INVALID → DUPLICATE
For the record, I verify that sounds now works correctly in Firefox 16.0.1.  :-)
Status: RESOLVED → VERIFIED
You need to log in before you can comment on or make changes to this bug.