#pragma once #include #include "FileParser.h" #include "FrameConsumer.h" class FrameProducer : public juce::Thread { public: FrameProducer(FrameConsumer&, std::shared_ptr); ~FrameProducer() override; void run() override; private: juce::SpinLock lock; FrameConsumer& frameConsumer; std::shared_ptr frameSource; };