I would like to read an audio file and process the buffer while it is read. I am thinking about making an AudioPlayer (CreateAudioPlayer) with file as source and a buffer as sink. Then another AudioPlayer with a buffer as source and the outputmix as sink...and passing the buffer from one to the other while it is read.
Would this be correct ? Is there some available source code doing this? It is a pretty standard audio task but I can't find any example. I am working on Android but any OpenSL example doing this would work.