Suggestion for minimizing audio glitches

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.

Regards,
Philippe.

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