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.
30 lines
615 B
C++
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
|