Files
oak-editor/app/render/backend/audio/audiobackend.h
T
itsmattkc f424d8b44e rewrote renderers where necessary for new node structure
Largely conforming renderers to new NodeValue system. Code seems a lot cleaner
this way which is a nice advantage. Likely non-functional as this won't
compile just yet and still needs probably another day or two of testing to get
it back to where it was before.
2019-12-05 03:53:52 +11:00

41 lines
808 B
C++

#ifndef AUDIOBACKEND_H
#define AUDIOBACKEND_H
#include <QFile>
#include "../audiorenderbackend.h"
class AudioBackend : public AudioRenderBackend
{
Q_OBJECT
public:
AudioBackend(QObject* parent = nullptr);
virtual ~AudioBackend() override;
virtual QIODevice* GetAudioPullDevice() override;
public slots:
virtual void InvalidateCache(const rational &start_range, const rational &end_range) override;
protected:
virtual bool InitInternal() override;
virtual void CloseInternal() override;
virtual bool CompileInternal() override;
virtual void DecompileInternal() override;
virtual void ConnectWorkerToThis(RenderWorker* worker) override;
private slots:
void ThreadCompletedCache(NodeDependency dep, QVariant data);
private:
QFile pull_device_;
};
#endif // AUDIOBACKEND_H