Merge "Added VideoEditor reference to protected AudioTrack constructor"

This commit is contained in:
Gil Dobjanschi
2010-10-06 11:26:24 -07:00
committed by Android (Google) Code Review
2 changed files with 5 additions and 3 deletions

View File

@@ -236,6 +236,7 @@ public class AudioTrack {
/**
* Constructor
*
* @param editor The video editor reference
* @param audioTrackId The audio track id
* @param filename The audio filename
* @param startTimeMs the start time in milliseconds (relative to the
@@ -251,8 +252,9 @@ public class AudioTrack {
*
* @throws IOException if file is not found
*/
AudioTrack(String audioTrackId, String filename, long startTimeMs, long beginMs, long endMs,
boolean loop, int volume, boolean muted, String audioWaveformFilename) throws IOException {
AudioTrack(VideoEditor editor, String audioTrackId, String filename, long startTimeMs,
long beginMs, long endMs, boolean loop, int volume, boolean muted,
String audioWaveformFilename) throws IOException {
mUniqueId = audioTrackId;
mFilename = filename;
mStartTimeMs = startTimeMs;

View File

@@ -1017,7 +1017,7 @@ public class VideoEditorTestImpl implements VideoEditor {
final boolean loop = Boolean.parseBoolean(parser.getAttributeValue("", ATTR_LOOP));
final String waveformFilename = parser.getAttributeValue("", ATTR_AUDIO_WAVEFORM_FILENAME);
try {
final AudioTrack audioTrack = new AudioTrack(audioTrackId, filename, startTimeMs,
final AudioTrack audioTrack = new AudioTrack(this, audioTrackId, filename, startTimeMs,
beginMs, endMs, loop, volume, muted, waveformFilename);
return audioTrack;