ICommunicator.hpp 378 B

1234567891011121314151617
  1. #pragma once
  2. #include <functional>
  3. #include <stdint.h>
  4. class ICommunicator {
  5. public:
  6. /**
  7. * Send samples through the Communicator.
  8. */
  9. virtual void sendPcmSamples(int16_t *samples, unsigned int length) = 0;
  10. /**
  11. * This callback is called when Communicator has received samples.
  12. */
  13. std::function<void(int16_t *, int)> onIncomingPcmSamples;
  14. };