Skip to content

Commit

Permalink
Removing debug output
Browse files Browse the repository at this point in the history
  • Loading branch information
tedwaine committed Dec 3, 2024
1 parent c647c35 commit 9cccd03
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 15 deletions.
12 changes: 0 additions & 12 deletions src/audio/src/audio_output.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -168,10 +168,6 @@ void AudioOutputControl::prepare_samples_for_soundcard(

if (current_buf_) {

std::cerr << to_string(current_buf_->media_key()) << " "
<< current_buf_->duration_seconds()
<< "\n";

current_buf_pos_ = 0;

// is audio playback stable ? i.e. is the next sample buffer
Expand Down Expand Up @@ -240,7 +236,6 @@ void AudioOutputControl::queue_samples_for_playing(
t0 = audio_frames[0].timeline_timestamp();
}

std::cerr << "queue_samples_for_playing ";
for (const auto & frame: audio_frames) {

// xstudio stores a frame of audio samples for every video frame for any
Expand All @@ -254,8 +249,6 @@ void AudioOutputControl::queue_samples_for_playing(
const auto adjusted_timeline_timestamp =
std::chrono::duration_cast<timebase::flicks>(frame.timeline_timestamp() + (frame ? frame->time_delta_to_video_frame() : std::chrono::microseconds(0)));

std::cerr << timebase::to_seconds(adjusted_timeline_timestamp) << " " << timebase::to_seconds(t0) << " ";

if (frame)
t0 += timebase::to_flicks(frame->duration_seconds());

Expand Down Expand Up @@ -285,7 +278,6 @@ void AudioOutputControl::queue_samples_for_playing(
}

}
std::cerr << "\n\n";

}

Expand Down Expand Up @@ -442,10 +434,6 @@ AudioOutputControl::check_if_buffer_is_contiguous_with_previous_and_next(
}
}

if (result != NoFade) {
std::cerr << "Distort\n";
}

return (AudioOutputControl::Fade)result;
}

Expand Down
6 changes: 4 additions & 2 deletions src/contact_sheet/src/contact_sheet_actor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -119,8 +119,10 @@ void ContactSheetActor::init() {
rp.deliver(j);
});

} else if (!playhead_serialisation_.is_null()) {
j["playhead"] = playhead_serialisation_;
} else {
if (!playhead_serialisation_.is_null()) {
j["playhead"] = playhead_serialisation_;
}
rp.deliver(j);
}
return rp;
Expand Down
2 changes: 1 addition & 1 deletion src/ui/qml/helper/src/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ SET(LINK_DEPS
Qt5::Qml
Qt5::Gui
Qt5::Quick
#Qt5::DBus
Qt5::DBus
xstudio::global_store
xstudio::media
xstudio::utility
Expand Down

0 comments on commit 9cccd03

Please sign in to comment.