gearmulator

Emulation of classic VA synths of the late 90s/2000s that are based on Motorola 56300 family DSPs
Log | Files | Refs | Submodules | README | LICENSE

audioOutput.h (423B)


      1 #pragma once
      2 
      3 #include <functional>
      4 
      5 #include "mqLib/mqtypes.h"
      6 
      7 namespace mqConsoleLib
      8 {
      9 	class AudioOutput
     10 	{
     11 	public:
     12 		using ProcessCallback = std::function<void(uint32_t, const mqLib::TAudioOutputs*&)>;
     13 
     14 		AudioOutput(const ProcessCallback& _callback) : m_processCallback(_callback)
     15 		{
     16 		}
     17 		virtual ~AudioOutput() = default;
     18 
     19 		virtual void process() {}
     20 
     21 	protected:
     22 		const ProcessCallback& m_processCallback;
     23 	};
     24 }