Bug 19308 - HTML5 <audio>: base-64 data URI for wav sound causes distorted playback
Summary: HTML5 <audio>: base-64 data URI for wav sound causes distorted playback
Status: RESOLVED DUPLICATE of bug 19307
Alias: None
Product: WebKit
Classification: Unclassified
Component: New Bugs (show other bugs)
Version: 525.x (Safari 3.1)
Hardware: PC Windows XP
: P2 Normal
Assignee: Nobody
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-05-29 09:01 PDT by Markus Walther
Modified: 2008-05-29 09:08 PDT (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Markus Walther 2008-05-29 09:01:34 PDT
Playback of base-64-encoded WAV sound data results in severe distortion when sound is played programmatically:

<script>
var dataURI="data:audio/x-wav;base64,..." ;
var audio = new Audio(dataURI);
audio.play();
</script>

This does not happen for URL-encoded WAV sound data. 

Also, both types of encodings play just fine when the respective data URIs are used in static hyperlinks.


For reproducing the bug,  one could use this online data URI generation service

http://software.hixie.ch/utilities/cgi/data/data

together with a small WAV sound file such as the 5KB oops.wav from

http://www.eventsounds.com/wav/oops.wav
Comment 1 Matt Lilek 2008-05-29 09:08:10 PDT

*** This bug has been marked as a duplicate of 19307 ***