TAAE2: Playing a sound file multiple times / not looping.
Thanks to the developers for a what so far seems like great audio engine!
I have an application with 91 wav files that need to be played at set times (roughly once a second) repeatedly but not looping. In AEAudioFilePlayerModule when I call playAtTime it can take quite a few ms to finish this call, in fact it often takes over half a second to schedule all 91 players. The part that seems to cause this issue is in schedulePlayRegionFromPosition, which seems to do a bunch of setup for playing - YET isn't required each playback as demonstrated when looping. (Note I am testing on an Ipod touch)
Is there a way to bypass this loading, e.g. by setting 'currentTIme' and 'playing' properties on the object? OR should I be more thinking about creating multiple AEAudioFilePlayerModules, for each wav file?
I am envisioning a similar class which behaves like a sampler, in which scheduling the time to playback is instantaneous with all setup done prior.