Skip to content

Commit

Permalink
Fix audio distortion
Browse files Browse the repository at this point in the history
  • Loading branch information
tedwaine committed Dec 3, 2024
1 parent 9cccd03 commit 4b91470
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 4 deletions.
3 changes: 1 addition & 2 deletions src/audio/src/audio_output.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -359,9 +359,8 @@ media_reader::AudioBufPtr AudioOutputControl::pick_audio_buffer(
}

if (drop_old_buffers && playing_forward_) {
r++;
sample_data_.erase(sample_data_.begin(), r);
} else {
} else if (drop_old_buffers) {
sample_data_.erase(r, sample_data_.end());
}
return v;
Expand Down
2 changes: 0 additions & 2 deletions src/timeline/src/item.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1726,13 +1726,11 @@ void BuildFrameIDsHelper::add_frame(caf::actor clip_actor, timebase::flicks time
current_clip_actor_ = clip_actor;
timeline_timepoints_.clear();
clip_timepoints_.clear();
std::cerr << "@";

}

timeline_timepoints_.emplace_back(timeline_tp);
clip_timepoints_.emplace_back(clip_tp);
std::cerr << ":";

}

Expand Down

0 comments on commit 4b91470

Please sign in to comment.