use of android.media.videoeditor.AudioTrack in project android_frameworks_base by ParanoidAndroid.
the class VideoEditorAPITest method testAudioTrackSetGetTime.
/**
* To test creation of Audio Track with set Start Time and Get Time
*/
@LargeTest
public void testAudioTrackSetGetTime() throws Exception {
final String audioFileName = INPUT_FILE_PATH + "AACLC_48KHz_256Kbps_s_1_17.3gp";
boolean flagForException = false;
final AudioTrack audioTrack = mVideoEditorHelper.createAudio(mVideoEditor, "audioTrack", audioFileName);
mVideoEditor.addAudioTrack(audioTrack);
/** set StartTime API is removed and start time is always 0 */
assertEquals("Audio Track Start Time", 0, audioTrack.getStartTime());
}
Aggregations