Tamás Kovács
2012-09-06 23:27:28 UTC
The documentation says that AudioTrack.write() is thread-safe in terms of
stop().
What about the other operations? As far as I can see, e.g. play() and
pause() should also be callable from another thread.
write() is blocking, so it does not make much sense to call pause() from
the same thread as write().
Is it OK to use an own thread for write() and using the other operations
(stop, pause, play) from a different thread?
stop().
What about the other operations? As far as I can see, e.g. play() and
pause() should also be callable from another thread.
write() is blocking, so it does not make much sense to call pause() from
the same thread as write().
Is it OK to use an own thread for write() and using the other operations
(stop, pause, play) from a different thread?
--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-***@googlegroups.com
To unsubscribe from this group, send email to
android-developers+***@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-***@googlegroups.com
To unsubscribe from this group, send email to
android-developers+***@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en