Quantcast
Channel: Appcelerator Developer Center Q&A Tag Feed (multitouch)
Viewing all articles
Browse latest Browse all 15

Drum app : sound problem, multitouch and latency

$
0
0

Hi there, I'm trying to develop a drum app on titanium. It s actually very simple but TI seems no to be the good way to do it, I explain.

For now I did :

i created a window in which I put buttons where to press in order to play a sound.

var winMain = Titanium.UI.createWindow({........ var padRide= Titanium.UI.createButton({ ........

padRide.addEventListener('touchstart', function(e) {

var ride = Ti.Media.createSound({
    url : "sounds/ride.wav",
    preload : true
});

ride.play();

});

My problems are :

  • latency is not too bad, but can be better, HOW :) ?
  • how to do multitouch to play several sounds at the same time
  • sometime, all sounds stop when I play too fast (yes, I play very fast :D ), may be RAM overloaded, I don t know

So is someone have a solution, thx a lot !!


Viewing all articles
Browse latest Browse all 15

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>