7 #include "libavutil/mem.h"
16 throw std::bad_alloc();
21 : m_size(old.m_size), m_realsize(old.m_realsize),
22 m_frames(old.m_frames), m_time(old.m_time)
27 throw std::bad_alloc();
38 std::chrono::milliseconds time)
49 throw std::bad_alloc();
65 int audio_channels,
bool passthru)
66 : m_initpassthru(passthru)
69 const AudioSettings settings(audio_format, audio_channels, AV_CODEC_ID_NONE, 0,
false);
140 auto *buf = (
unsigned char *)buffer;
161 timecode += std::chrono::milliseconds(out_frames * 1000 /
m_eff_audiorate);
166 out_frames, timecode);
190 timecode += std::chrono::milliseconds(frames * 1000 /
m_eff_audiorate);
230 if (ab->m_time <= time)