Updating values rapidly would cause strange jitters as a byproduct of the viewer trying to update from the renderer while it was still working. Rather than the viewer trying to access the the renderer, we now send textures in the initial update signal to keep everything synchronized.
30 lines
619 B
C++
30 lines
619 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 QVariant 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
|