summaryrefslogtreecommitdiff
path: root/src/lib/audio_ring_buffers.cc
AgeCommit message (Collapse)Author
2025-09-02Untested conversion to num/den DCPTime.arbitrary-hzCarl Hetherington
Summary of required changes: Replace ::from_frames with a constructor that takes num/den. Provide and use member to_debug_string() instead of to_string(). Provide and use member to_serializable_string() and string constructor instead of fmt::to_string on .get() and number constructor. Provide and use content_time() member instead of ContentTime constructor from DCPTime. Use frames_round(96000) instead of get() when comparing times to see if they are "close enough". Provide and use DCPTime(x, FrameRateChange) constructor when converting from ContentTime. Use .seconds() when calculating proportions or sometimes when dividing by HZ. Provide and use operator bool(). Pass explicit 96000 denominator in a lot of places. Add member max() and use it instead of static max() Change BOOST_CHECK_EQUAL to BOOST_CHECK Provide operator/ and use it instead of .get() / 2.
2025-05-10White space: audio_ring_buffers.{cc,h}Carl Hetherington
2022-06-07I'm not sure a cout about audio underruns is really useful.Carl Hetherington
2022-04-20Use std::vector in AudioBuffers (#2236).Carl Hetherington
2021-02-16C++11 tidying.Carl Hetherington
2021-01-07BOOST_FOREACH.Carl Hetherington
2021-01-07std::shared_ptrCarl Hetherington
2019-05-10Put Time types in dcpomatic namespace.Carl Hetherington
2019-04-19Hopefully better errors on large video/audio disagreements.Carl Hetherington
2019-01-10Fix a crash due the assertion in emit_audio failing when applyingCarl Hetherington
trims which do not land precisely on a DCP audio sample boundary (at least, I think that's what triggers it).
2018-12-22Fix assumption of 48kHz DCP audio in AudioRingBuffers consistency check (#1436).Carl Hetherington
2018-08-14Temporary debugging.Carl Hetherington
2018-08-04Timestamp audio emissions from butler and hence discard very lateCarl Hetherington
audio in FilmViewer. This should help with the case where lots of video frames are rapidly discarded when they are late but the corresponding audio is not, hence audio buffers get overfilled.
2017-10-08Fix build failure (#1134).Carl Hetherington
2017-07-12Make ::get tell caller if there's been an underrun.Carl Hetherington
2017-05-22Remove some unused code.Carl Hetherington
2017-04-19const correctness.Carl Hetherington
2017-04-19Small cleanup.Carl Hetherington
2017-04-19Initial butler work.Carl Hetherington