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.
This commit is contained in:
@@ -1,6 +1,23 @@
|
||||
#include "audioworker.h"
|
||||
|
||||
AudioWorker::AudioWorker()
|
||||
AudioWorker::AudioWorker(DecoderCache *decoder_cache, QObject *parent) :
|
||||
AudioRenderWorker(decoder_cache, parent)
|
||||
{
|
||||
}
|
||||
|
||||
QVariant AudioWorker::FrameToValue(FramePtr frame)
|
||||
{
|
||||
return frame->ToByteArray();
|
||||
}
|
||||
|
||||
bool AudioWorker::OutputIsAccelerated(NodeOutput *output)
|
||||
{
|
||||
Q_UNUSED(output)
|
||||
return false;
|
||||
}
|
||||
|
||||
QVariant AudioWorker::RunNodeAccelerated(NodeOutput *output)
|
||||
{
|
||||
Q_UNUSED(output)
|
||||
return QVariant();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user