Files
oak-editor/app/render/backend/audiorenderworker.h
T
itsmattkc 40b3879440 overhauled render classes to support video AND audio
Major refactoring work to try sharing as much code as possible between the
video renderers and audio renderers, as well as make them as
platform-independent as possible.
2019-11-15 13:50:58 +09:00

30 lines
615 B
C++

#ifndef AUDIORENDERWORKER_H
#define AUDIORENDERWORKER_H
#include "renderworker.h"
class AudioRenderWorker : public RenderWorker
{
Q_OBJECT
public:
AudioRenderWorker(DecoderCache* decoder_cache, QObject* parent = nullptr);
void SetParameters(const AudioRenderingParams& audio_params);
public slots:
virtual void RenderAsSibling(NodeDependency dep) override;
protected:
virtual bool InitInternal() override;
virtual void CloseInternal() override;
QVariant RenderBlock(NodeOutput *output, const TimeRange& range);
private:
AudioRenderingParams audio_params_;
};
#endif // AUDIORENDERWORKER_H