Since the nodes won't be holding any rendering data themselves in this system, we may as well enforce some level of non-write access by setting all the functions to const. They were already const-friendly, they just weren't labelled as such.
43 lines
685 B
C++
43 lines
685 B
C++
#include "audio.h"
|
|
|
|
AudioInput::AudioInput()
|
|
{
|
|
samples_output_ = new NodeOutput("samples_out");
|
|
AddParameter(samples_output_);
|
|
}
|
|
|
|
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.");
|
|
}
|
|
|
|
NodeOutput *AudioInput::samples_output()
|
|
{
|
|
return samples_output_;
|
|
}
|
|
|
|
NodeValueTable AudioInput::Value(const NodeValueDatabase &value) const
|
|
{
|
|
return value[footage_input_];
|
|
}
|