summaryrefslogtreecommitdiffstats
path: root/media/java
diff options
context:
space:
mode:
authorWei Jia <wjia@google.com>2015-08-06 11:04:22 -0700
committerWei Jia <wjia@google.com>2015-08-06 12:51:36 -0700
commit5d177fff2f20f7805e86054912e5a64163f9ea43 (patch)
treea77b5e5e6b58be5fde5b0106fd3aefd9fd63ac00 /media/java
parent6b0f1e78b841a32b45f513d283202e3af90c6a73 (diff)
downloadframeworks_base-5d177fff2f20f7805e86054912e5a64163f9ea43.zip
frameworks_base-5d177fff2f20f7805e86054912e5a64163f9ea43.tar.gz
frameworks_base-5d177fff2f20f7805e86054912e5a64163f9ea43.tar.bz2
MediaSync: fix API comments.
Bug: 23008551 Change-Id: Ifbf1970c174b54a761d4672d954ee5633adbf3d6
Diffstat (limited to 'media/java')
-rw-r--r--media/java/android/media/MediaSync.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/media/java/android/media/MediaSync.java b/media/java/android/media/MediaSync.java
index b37e02c..5522d36 100644
--- a/media/java/android/media/MediaSync.java
+++ b/media/java/android/media/MediaSync.java
@@ -55,7 +55,7 @@ import java.util.List;
* }
* }, null);
* // This needs to be done since sync is paused on creation.
- * sync.setPlaybackRate(1.0f, MediaSync.PLAYBACK_RATE_AUDIO_MODE_RESAMPLE);
+ * sync.setPlaybackParams(new PlaybackParams().setSpeed(1.f));
*
* for (;;) {
* ...
@@ -69,7 +69,7 @@ import java.util.List;
* ...
* ...
* }
- * sync.setPlaybackRate(0.0f, MediaSync.PLAYBACK_RATE_AUDIO_MODE_RESAMPLE);
+ * sync.setPlaybackParams(new PlaybackParams().setSpeed(0.f));
* sync.release();
* sync = null;
*