If Nodes only have the one output, we don't need to do so much differentiation between them. Previous iteration used outputs as like a distinct function within a Node (e.g. length output would return one result, buffer output would produce a different result - each run different code to produce their results). Now in this iteration, it's more accurate to say a Node is just one function (which seems more appropriate for a node system anyway).
36 lines
529 B
C++
36 lines
529 B
C++
#include "audio.h"
|
|
|
|
AudioInput::AudioInput()
|
|
{
|
|
}
|
|
|
|
Node *AudioInput::copy() const
|
|
{
|
|
return new AudioInput();
|
|
}
|
|
|
|
QString AudioInput::Name() const
|
|
{
|
|
return tr("Audio Input");
|
|
}
|
|
|
|
QString AudioInput::id() const
|
|
{
|
|
return "org.olivevideoeditor.Olive.audioinput";
|
|
}
|
|
|
|
QString AudioInput::Category() const
|
|
{
|
|
return tr("Input");
|
|
}
|
|
|
|
QString AudioInput::Description() const
|
|
{
|
|
return tr("Import an audio footage stream.");
|
|
}
|
|
|
|
NodeValueTable AudioInput::Value(const NodeValueDatabase &value) const
|
|
{
|
|
return value[footage_input_];
|
|
}
|