ISamplesBuffer.hpp 335 B

1234567891011121314
  1. #ifndef MUMSI_ISAMPLESBUFFER_HPP
  2. #define MUMSI_ISAMPLESBUFFER_HPP
  3. #include <inttypes.h>
  4. class ISamplesBuffer {
  5. public:
  6. virtual void pushSamples(int16_t *samples, unsigned int length) = 0;
  7. virtual unsigned int pullSamples(int16_t *samples, unsigned int length, bool waitWhenEmpty) = 0;
  8. };
  9. #endif //MUMSI_ISAMPLESBUFFER_HPP