add audio incoming source

This commit is contained in:
2024-09-30 00:07:33 +02:00
parent 06c7c1fa37
commit 064106c6b2
4 changed files with 149 additions and 6 deletions

View File

@@ -34,6 +34,10 @@ struct LockedFrameStream2 : public FrameStream2I<FrameType> {
bool push(const FrameType& value) {
std::lock_guard lg{_lock};
if (_frames.size() > 1024) {
return false; // hard limit
}
_frames.push_back(value);
return true;