summaryrefslogtreecommitdiffstats
path: root/media/java
diff options
context:
space:
mode:
authorGil Dobjanschi <virgild@google.com>2010-11-18 14:54:02 -0800
committerGil Dobjanschi <virgild@google.com>2010-11-18 14:54:02 -0800
commita0dfa2cdd8c84db4732c9ac8344c5e8d1480bc1f (patch)
treee7432c787f2961d34b11484d4a8944d44e7f32b8 /media/java
parent23c430ca7534671d187049ab5fd9a69700d7cb81 (diff)
downloadframeworks_base-a0dfa2cdd8c84db4732c9ac8344c5e8d1480bc1f.zip
frameworks_base-a0dfa2cdd8c84db4732c9ac8344c5e8d1480bc1f.tar.gz
frameworks_base-a0dfa2cdd8c84db4732c9ac8344c5e8d1480bc1f.tar.bz2
AudioTrack getTimelineDuration clarification.
Change-Id: I276316e851918df227b7246766916fa8572f1b89
Diffstat (limited to 'media/java')
-rwxr-xr-xmedia/java/android/media/videoeditor/AudioTrack.java13
1 files changed, 3 insertions, 10 deletions
diff --git a/media/java/android/media/videoeditor/AudioTrack.java b/media/java/android/media/videoeditor/AudioTrack.java
index cf7a25c..e95ef35 100755
--- a/media/java/android/media/videoeditor/AudioTrack.java
+++ b/media/java/android/media/videoeditor/AudioTrack.java
@@ -286,9 +286,7 @@ public class AudioTrack {
}
/**
- * @return The timeline duration. If looping is enabled this value
- * represents the duration of the looped audio track, otherwise it
- * is the duration of the audio track (mDurationMs).
+ * @return The timeline duration as defined by the begin and end boundaries
*/
public long getTimelineDuration() {
return mTimelineDurationMs;
@@ -312,13 +310,8 @@ public class AudioTrack {
mBeginBoundaryTimeMs = beginMs;
mEndBoundaryTimeMs = endMs;
- if (mLoop) {
- // TODO: Compute mDurationMs (from the beginning of the loop until
- // the end of all the loops.
- mTimelineDurationMs = mEndBoundaryTimeMs - mBeginBoundaryTimeMs;
- } else {
- mTimelineDurationMs = mEndBoundaryTimeMs - mBeginBoundaryTimeMs;
- }
+
+ mTimelineDurationMs = mEndBoundaryTimeMs - mBeginBoundaryTimeMs;
}
/**