Skip to content

Commit

Permalink
Fix for timeline display of alab.otio, but does not work on actual au…
Browse files Browse the repository at this point in the history
…dio files.
  • Loading branch information
ggarra13 committed Sep 8, 2023
1 parent e6b0061 commit 3e753f3
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lib/tlTimelineUI/AudioClipItem.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -292,13 +292,15 @@ namespace tl
const auto j = p.waveformRequests.find(time);
if (j == p.waveformRequests.end())
{
const otime::RationalTime start = p.ioInfo->audioTime.start_time();
const otime::RationalTime time2 = time::round(otime::RationalTime(
_timeRange.start_time().value() +
(w > 0 ? ((x + _options.waveformWidth) / static_cast<double>(w)) : 0) *
_timeRange.duration().value(),
_timeRange.duration().rate()));
const otime::TimeRange mediaRange = timeline::toAudioMediaTime(
otime::TimeRange::range_from_start_end_time(time, time2),
otime::TimeRange::range_from_start_end_time(time + start,
time2 + start),
p.clip,
p.ioInfo->audio.sampleRate);
p.waveformRequests[time] = thumbnailSystem->getWaveform(
Expand Down

0 comments on commit 3e753f3

Please sign in to comment.