Anyone have any experience writing to Android’s AudioTrack using coroutines? If so, any tips/gotchas etc? I’m thinking particularly in terms of managing buffering (because want to calculate PCM data lazily since it could be very large) and managing playback state.
t
tseisel
11/11/2019, 9:29 AM
You may take a look at kotlinx-io, an experimental library that provides primitives for asynchronous IO : https://github.com/Kotlin/kotlinx-io
It's used internally by Ktor to manage Http requests and responses