Anyone have any experience writing to Android’s Au...
# coroutines
m
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
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
👍 1