muzgen/lib/Signal.hpp

31 lines
459 B
C++
Raw Permalink 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 frame.
* @param out the output buffer that will contain the next frame.
**/
virtual void next(std::vector<float>& out) = 0;
2024-01-29 10:59:55 +00:00
private:
};
}
#endif