diff options
| author | Carl Hetherington <cth@carlh.net> | 2018-08-14 16:46:05 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2018-08-14 16:46:05 +0100 |
| commit | 4ff0e7ddb7580e91892075f6f11e2ef6d29578d6 (patch) | |
| tree | 12ff469f615bbbb74d2574b6abf23ca7f28915ba /src/lib | |
| parent | e65d31fbccad80c80f743516ecdd8269826d2114 (diff) | |
Temporary debugging.
Diffstat (limited to 'src/lib')
| -rw-r--r-- | src/lib/audio_ring_buffers.cc | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/lib/audio_ring_buffers.cc b/src/lib/audio_ring_buffers.cc index f51ff8a38..012ab0718 100644 --- a/src/lib/audio_ring_buffers.cc +++ b/src/lib/audio_ring_buffers.cc @@ -45,6 +45,9 @@ AudioRingBuffers::put (shared_ptr<const AudioBuffers> data, DCPTime time) if (!_buffers.empty()) { DCPOMATIC_ASSERT (_buffers.front().first->channels() == data->channels()); + if ((_buffers.back().second + DCPTime::from_frames(_buffers.back().first->frames(), 48000)) != time) { + cout << "bad put " << to_string(_buffers.back().second) << " " << _buffers.back().first->frames() << " " << to_string(time) << "\n"; + } DCPOMATIC_ASSERT ((_buffers.back().second + DCPTime::from_frames(_buffers.back().first->frames(), 48000)) == time); } |
