muzgen/lib/Signal.hpp

32 lines
486 B
C++
Raw Normal View History

2024-01-29 10:59:55 +00:00
#ifndef muz_SIGNAL_HPP
#define muz_SIGNAL_HPP
#include "commons.hpp"
2024-01-29 10:59:55 +00:00
namespace muz
{
MUZ_ERROR(signal_error);
/**
* Audio signal interface.
* @see Sine
* @see Constant
**/
2024-01-29 10:59:55 +00:00
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;
2024-01-29 10:59:55 +00:00
private:
};
}
#endif