I'd like to create a simple audio sequencer app for Android (like FL, GarageBand etc.). However, I'm stuck at manipulating the audio. In particular, how should I implement audio playback (that is, playing the recorded audio), are there any libraries to use or it is better to use just default Java methods? Recently I found Oboe but I'm not sure whether it is good for that purpose.
I'm using raw files as the audio sources (like piano notes) and access them using AudioTrack.
If the android environment for audio output is like Java, the best way to get accurate timing is going to be by counting PCM frames and using that to keep all the elements aligned. I haven't done a lot with Android, but I think the class to use for output is
AudioTrack, as it allows you to stream PCM. I'd look at making sure all your sounds can be converted to PCM and use that data form for mixing and effects processing, then output viaAudioTrack.I haven't looked at Oboe. Perhaps it has everything that is needed already built. I'm old school--am only recently getting the hang of looking for libraries rather than reinventing the wheel.
Here's a previous question that talks a bit about outputting PCM.