diff options
| author | Carl Hetherington <cth@carlh.net> | 2020-01-17 22:34:58 +0000 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2020-01-17 22:34:58 +0000 |
| commit | ffb3cf8bfe397c87d0e797eb8732aa6b1f6c5091 (patch) | |
| tree | f291cc5394963a8064db6b4e270512f641d42a19 /src/lib/audio_merger.cc | |
| parent | d8ded66fccb98bd0145afb2f08cf84aad7002a15 (diff) | |
Debug.debug/shane
Diffstat (limited to 'src/lib/audio_merger.cc')
| -rw-r--r-- | src/lib/audio_merger.cc | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/lib/audio_merger.cc b/src/lib/audio_merger.cc index a16c378c6..a42258012 100644 --- a/src/lib/audio_merger.cc +++ b/src/lib/audio_merger.cc @@ -23,6 +23,7 @@ #include "audio_merger.h" #include "dcpomatic_time.h" +#include "dcpomatic_log.h" #include <iostream> using std::pair; @@ -69,6 +70,7 @@ AudioMerger::pull (DCPTime time) shared_ptr<AudioBuffers> audio (new AudioBuffers (i.audio->channels(), frames(DCPTime(time - i.time)))); /* Though time > i.time, audio->frames() could be 0 if the difference in time is less than one frame */ if (audio->frames() > 0) { + LOG_GENERAL("copy_from #1; pulling from %2", to_string(time)); audio->copy_from (i.audio.get(), audio->frames(), 0, 0); out.push_back (make_pair (audio, i.time)); i.audio->trim_start (audio->frames ()); @@ -134,6 +136,7 @@ AudioMerger::push (boost::shared_ptr<const AudioBuffers> audio, DCPTime time) /* Get the part of audio that we want to use */ shared_ptr<AudioBuffers> part (new AudioBuffers (audio->channels(), frames(i.to) - frames(i.from))); + LOG_GENERAL_NC("copy_from #2"); part->copy_from (audio.get(), part->frames(), frames(DCPTime(i.from - time)), 0); if (before == _buffers.end() && after == _buffers.end()) { |
