bp74 / StageXL

A fast and universal 2D rendering engine for HTML5 and Dart.
http://www.stagexl.org
Other
882 stars 82 forks source link

IE 10 - sound loop is not completely seamless #122

Closed avstudios closed 10 years ago

avstudios commented 10 years ago

Hi Bernhard,

When I play a loop sound in IE 10 there's slight 'jump' in the sound. It happens when new loop starts. Is it know issue in IE 10?

Cheers Marcin

bp74 commented 10 years ago

Hi Marcin,

I don't know about this issue, but i know that sound playback in IE (all versions) is really bad. On the one hand they don't support the new WebAudio API (like in Firefox or Chrome) and on the other hand the AudioElement implementation sucks. One of those issues is that there is a pretty big latency from starting a sound until you actually hear it, especially if many sounds are playing at the same time. So there is little hope to improve this issue :(

Bernhard

bp74 commented 10 years ago

I had a quick look at the code, this is the native behavior of the AudioElement on IE. https://github.com/bp74/StageXL/blob/master/lib/src/media/implementation/audio_element_sound_channel.dart

Line 71: We actually set the native "loop" property of the AudioElement, so looping is done by IE itself.

avstudios commented 10 years ago

Hi Bernhard,

Thanks for quick response. The information you posted are very useful. So I know that nothing is wrong with my code or your lib.

Cheers Marcin