25 std::map<std::string, std::shared_ptr<Filter>> _filters;
26 d _dc_offset = 0, _level_linear = 1;
47 void setFilter(
const std::string& name, std::shared_ptr<Filter> f);
62 void setMute(
bool mute =
true) { _muted = mute; }
71 void setLevel(
const d level,
bool dB=
true);
80 void reset(
const d newFs);
Data coming from / going to DAQ. Non-interleaved format, which means data in buffer is ordered by cha...
Signal generation abstract base class. Implementation is required for resetImpl(),...
void setFilter(const std::string &name, std::shared_ptr< Filter > f)
Set a filter on the signal. For example to EQ the signal, or otherwise to shape the spectrum....
vd genSignal(const us nframes)
Called whenever the implementation needs to create new samples.
virtual vd genSignalUnscaled(const us nframes)=0
void setDCOffset(d offset)
Set a linear DC offset value to the signal.
void setLevel(const d level, bool dB=true)
Set the level of the signal generator.
virtual void resetImpl()=0
void reset(const d newFs)
Reset the signal generator. Should be called whenever the output is based on a different sampling fre...
virtual ~Siggen()=default
void setMute(bool mute=true)
Mute the signal. Passes through the DC offset. No lock is hold. If it just works one block later,...
Stream manager. Used to manage the input and output streams. Implemented as a singleton: only one str...
size_t us
We often use boolean values.