mumsi/ICommunicator.hpp

18 lines
378 B
C++
Raw Normal View History

2015-11-03 02:13:15 +01:00
#pragma once
#include <functional>
#include <stdint.h>
2015-11-03 02:13:15 +01:00
class ICommunicator {
public:
/**
* Send samples through the Communicator.
*/
virtual void sendPcmSamples(int16_t *samples, unsigned int length) = 0;
/**
* This callback is called when Communicator has received samples.
*/
std::function<void(int16_t *, int)> onIncomingPcmSamples;
};