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 !!