Hi, android audio experts,

I see the explanation here 
https://developer.android.com/reference/android/media/AudioTrack#write(float[],%20int,%20int,%20int)

But still confuse about that when should I use WRITE_NON_BLOCKING? I see 
both chromium media module (AudioTrackOutputStream.java - Chromium Code 
Search 
<https://source.chromium.org/chromium/chromium/src/+/main:media/base/android/java/src/org/chromium/media/AudioTrackOutputStream.java;l=313>)
 
and webrtc (WebRtcAudioTrack.java - Chromium Code Search 
<https://source.chromium.org/chromium/chromium/src/+/main:third_party/webrtc/sdk/android/src/java/org/webrtc/audio/WebRtcAudioTrack.java;l=122>)
 
use WRITE_BLOCKING mode, but nowhere use WRITE_NON_BLOCKING.

Could you kindly help provide some background or usage example, to make it 
more clear what scenario I should choose them?

Thanks a lot.

-- 
You received this message because you are subscribed to the Google Groups 
"Android Discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/android-discuss/ed1614f7-c44f-4357-911e-a13be42c7258n%40googlegroups.com.

Reply via email to