kopia lustrzana https://github.com/jameshball/osci-render
18 wiersze
447 B
C++
18 wiersze
447 B
C++
#pragma once
|
|
|
|
#include <JuceHeader.h>
|
|
#include "FrameSource.h"
|
|
#include "FrameConsumer.h"
|
|
|
|
class FrameProducer : public juce::Thread {
|
|
public:
|
|
FrameProducer(FrameConsumer&, std::shared_ptr<FrameSource>);
|
|
~FrameProducer() override;
|
|
|
|
void run() override;
|
|
void setSource(std::shared_ptr<FrameSource>, int fileIndex);
|
|
private:
|
|
FrameConsumer& frameConsumer;
|
|
std::shared_ptr<FrameSource> frameSource;
|
|
int sourceFileIndex = -1;
|
|
}; |