While planar audio cannot be used for playback, it's much easier for processing. This should lead to cleaner and easier to write code in the future.
33 lines
831 B
C++
33 lines
831 B
C++
#ifndef VOLUMENODE_H
|
|
#define VOLUMENODE_H
|
|
|
|
#include "node/node.h"
|
|
|
|
class VolumeNode : public Node
|
|
{
|
|
public:
|
|
VolumeNode();
|
|
|
|
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;
|
|
|
|
virtual Capabilities GetCapabilities(const NodeValueDatabase&) const override;
|
|
virtual NodeInput* ProcessesSamplesFrom() const override;
|
|
virtual void ProcessSamples(const NodeValueDatabase* values, const AudioRenderingParams& params, const SampleBufferPtr input, SampleBufferPtr output, int index) const override;
|
|
|
|
virtual void Retranslate() override;
|
|
|
|
NodeInput* samples_input() const;
|
|
|
|
private:
|
|
NodeInput* samples_input_;
|
|
NodeInput* volume_input_;
|
|
|
|
};
|
|
|
|
#endif // VOLUMENODE_H
|