I've an app that records audio using audiorecord and audiotrack to play. I've a progressbar in the ui that needs to increment as the track plays. The audiotrack api says that the read and write methods are blocking. These means that the ui is frozen till the write finishes, which is no good for the progressbar. I've looked at both audiorrack modes static and stream but both are blocking. Is there a way to update the ui whilst streaming or writing the audiotrack?
Thanks mat