muzgen/lib/Signal.hpp

32 lines
486 B
C++

#ifndef muz_SIGNAL_HPP
#define muz_SIGNAL_HPP
#include "commons.hpp"
namespace muz
{
MUZ_ERROR(signal_error);
/**
* Audio signal interface.
* @see Sine
* @see Constant
**/
class Signal
{
public:
explicit Signal();
virtual ~Signal();
/**
* Get the next sample.
* @return std::vector<float> of size N for a sample of N channels or an empty vector at end.
*
**/
virtual std::vector<float> next() = 0;
private:
};
}
#endif