From bff3dae8090700279de5d1a564f889f304b18939 Mon Sep 17 00:00:00 2001 From: Dean Wheatley Date: Mon, 3 Dec 2018 15:33:23 +1100 Subject: Specify AudioTrack HWAVSync timestamp units as nanoseconds Clarify the documentation by specifying the units of the timestamp for the HWAVSync case Bug: 63901775 Test: make Change-Id: Ida39a3ee5e6b4b0d3255bfef95601890afd80709 --- media/java/android/media/AudioTrack.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/media/java/android/media/AudioTrack.java b/media/java/android/media/AudioTrack.java index c226d49c6af7..71736dd38e91 100644 --- a/media/java/android/media/AudioTrack.java +++ b/media/java/android/media/AudioTrack.java @@ -2620,7 +2620,8 @@ public class AudioTrack extends PlayerBase * to the audio sink. *
With {@link #WRITE_NON_BLOCKING}, the write will return immediately after * queuing as much audio data for playback as possible without blocking. - * @param timestamp The timestamp of the first decodable audio frame in the provided audioData. + * @param timestamp The timestamp, in nanoseconds, of the first decodable audio frame in the + * provided audioData. * @return zero or the positive number of bytes that were written, or one of the following * error codes. *