W3C home > Mailing lists > Public > public-audio@w3.org > April to June 2012

Suggestion for minimizing audio glitches

From: <lemeslep@free.fr>
Date: Sun, 15 Apr 2012 21:22:22 +0200 (CEST)
To: public-audio@w3.org
Message-ID: <444382451.95401911.1334517742707.JavaMail.root@zimbra76-e14.priv.proxad.net>
Hi everyone,

On the current Web Audio draft, it is mentionned in ยง15.2 that "Audio glitches are caused by an interruption of the normal continuous audio stream, resulting in loud clicks and pops. It is considered to be a catastrophic failure of a multi-media system and must be avoided."
And I can't agree more with this!
I'm currently facing those ugly audio glitches in my project. I'm using Mozilla's Audio Data API at the moment, and I think I know how browsers could help me to mitigate this problem.

The clicks and pops are happening because if the audio buffer is underrun by the javascript app, the audio card is not feeded anymore, and so the card output goes straight from the value of the last sample played to 0.
What would be needed is, perhaps as an option in the Javascript audio node (?), to have the browser automatically feed the audio card by sustaining the last sample the javascript application sent, when the audio buffer is underrun.

That would really go a long way towards minimizing this critical issue.

Received on Monday, 16 April 2012 10:21:36 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 19:03:04 UTC