howler.js icon indicating copy to clipboard operation
howler.js copied to clipboard

continued sprite issues

Open galinawind opened this issue 12 years ago • 4 comments

The issue of sprites not stopping #77 seems to not have been remedied in version 1.1.20. Additionally 1.1.20 has created a new issue that is a rather bad one on Chrome. A common thing that one might do is have a background audio track play and then another sound trigger on some user interaction. In 1.1.18 this worked (but the rest of the sprite sheet always played). In 1.1.20 the user-interaction sound interrupts the background sound permanently and the background track will not resume playing no matter what you do.

Any ideas?

galinawind avatar May 11 '14 07:05 galinawind

I had trouble with sprites continuing playing as well and found that there seems to be a mistake on line 370. Changing

duration = self._sprite[sprite][1] / 1000 - node._pos;

to

duration = self._sprite[sprite][1] / 1000 - pos;

Fixed it for me. Hope this helps.

pcole avatar May 12 '14 21:05 pcole

That does help with the sprite continuing to play, however doesn't help with the user interaction sound interrupting the background and background never resuming. We are now experimenting with the WebAudio side of Howler, it seems to be working somewhat better.

galinawind avatar May 15 '14 14:05 galinawind

Can you give example code for the issue you are seeing with background sounds? Unable to reproduce so far.

goldfire avatar May 29 '14 00:05 goldfire

This has been included in the 2.0 update, which is currently undergoing beta testing. Please check https://github.com/goldfire/howler.js/issues/193 for details and let me know if you are still seeing issues.

goldfire avatar Aug 04 '14 15:08 goldfire