Playing several audio files at precise same time with short interval
I'm trying to build a sequencer and been stuck for days with this problem.
I have a button OR a timer where I would fire :
amen is a long kick bass
-and clap is a short clap
both in a mixerModule
_amen.currentTime = 0; _clap.currentTime = 0; [_amen playAtTime:AETimeStampWithHostTicks(0)]; [_clap playAtTime:AETimeStampWithHostTicks(0)];
at first it fires perfectly in sync ,but when I fire again while the samples are still playing, there's a small delay when the longest sample fire even though i set the currentTime to 0...
what to do?
Note: If I fire them and then when they're done playing and i fire again it does play in sync. So i dont think is the timer or button
I hope i explain myself