AbstractCommunicator.hpp 628 B

12345678910111213141516171819202122232425
  1. #ifndef MUMSI_ABSTRACTCOMMUNICATOR_HPP
  2. #define MUMSI_ABSTRACTCOMMUNICATOR_HPP
  3. #include "SoundSampleQueue.hpp"
  4. #include <stdint.h>
  5. #define SOUND_SAMPLE_TYPE int16_t
  6. class AbstractCommunicator {
  7. public:
  8. virtual void loop() = 0;
  9. protected:
  10. AbstractCommunicator(
  11. SoundSampleQueue<SOUND_SAMPLE_TYPE> &inputQueue,
  12. SoundSampleQueue<SOUND_SAMPLE_TYPE> &outputQueue)
  13. : inputQueue(inputQueue),
  14. outputQueue(outputQueue) { }
  15. SoundSampleQueue<SOUND_SAMPLE_TYPE> &inputQueue;
  16. SoundSampleQueue<SOUND_SAMPLE_TYPE> &outputQueue;
  17. };
  18. #endif //MUMSI_ABSTRACTCOMMUNICATOR_HPP