Skip to content

Commit

Permalink
Temporarily disable video line when using triggered T.WAV playback
Browse files Browse the repository at this point in the history
  • Loading branch information
pcprince committed Sep 27, 2023
1 parent d83f422 commit 4d1443e
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion scripts/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -4814,9 +4814,19 @@ exportVideoButton.addEventListener('click', () => {

const fileName = fileSpan.innerText.replace(/\.[^/.]+$/, '');

// FIXME: Line doesn't currently work when using Triggered T.WAV setting. Line is disabled until a fix is added

const showLine = videoLineEnabled && playbackMode !== PLAYBACK_MODE_SKIP;

if (videoLineEnabled && playbackMode === PLAYBACK_MODE_SKIP) {

console.log('Disabled video line as playback mode was set to "Triggered T.WAV"');

}

// Process audio and image into video file

exportVideo(imageCanvas, audioFileArray, videoLength, fileName, videoLineEnabled, fixedFpsEnabled, (succeeded) => {
exportVideo(imageCanvas, audioFileArray, videoLength, fileName, showLine, fixedFpsEnabled, (succeeded) => {

exportVideoIcon.style.display = '';
exportVideoSpinner.style.display = 'none';
Expand Down

0 comments on commit 4d1443e

Please sign in to comment.