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.
28 lines
535 B
C++
28 lines
535 B
C++
#ifndef AUDIOINPUT_H
|
|
#define AUDIOINPUT_H
|
|
|
|
#include "../media.h"
|
|
|
|
class AudioInput : public MediaInput
|
|
{
|
|
public:
|
|
AudioInput();
|
|
|
|
virtual Node* copy() const override;
|
|
|
|
virtual QString Name() const override;
|
|
virtual QString id() const override;
|
|
virtual QString Category() const override;
|
|
virtual QString Description() const override;
|
|
|
|
NodeOutput* samples_output();
|
|
|
|
protected:
|
|
virtual NodeValueTable Value(const NodeValueDatabase& value) const override;
|
|
|
|
private:
|
|
NodeOutput* samples_output_;
|
|
};
|
|
|
|
#endif // AUDIOINPUT_H
|