Welcome!

Welcome to the Official BlackBerry Support Community Forums. This is your resource to discuss support topics with your peers, and learn from each other. New to the forum? Please visit the ‘Getting Started’ link below.
inside custom component

Web and WebWorks Development

Reply
Developer
TheMarco
Posts: 669
Registered: ‎02-19-2011
My Carrier: Sprint

Re: audio latency

*bump*

Staff UI Prototyper (read: full-time hacker)


My BB10 apps: Screamager | Scientific RPN Calculator | The Last Weather App

Please use plain text.
Developer
TheMarco
Posts: 669
Registered: ‎02-19-2011
My Carrier: Sprint

Re: audio latency

*hears crickets chirp*

 

(also in the bug I created for this)

Staff UI Prototyper (read: full-time hacker)


My BB10 apps: Screamager | Scientific RPN Calculator | The Last Weather App

Please use plain text.
Regular Contributor
superfly_fr
Posts: 51
Registered: ‎12-23-2011
My Carrier: SFR

Re: audio latency

[ Edited ]

I'm experiencing the same issue with a WW (10.0.2.9)/BBui (0.9.4) HTML5 game.
I need to fire a (short / ogg) sound on touch events.

 

I did it the "simple way" in my main script :

var audioValid = new Audio('sounds/audioValid.ogg');

 And then in my touch event handler :

 

audioValid.play();

As my game is based on sequences that are running faster with levels, it works fine when time elapsed between events (touch) is long enough (> sound lenght ?), but won't play the sound when it is shorten (< sound length ?).

 

Is there any "good practice" or workaround for this ?

Please use plain text.