NamedPipeAudioSink.h 293 B

12345678910111213141516
  1. #pragma once
  2. #include <vector>
  3. #include <fstream>
  4. #include "AudioSink.h"
  5. class NamedPipeAudioSink : public AudioSink
  6. {
  7. public:
  8. NamedPipeAudioSink();
  9. ~NamedPipeAudioSink();
  10. void feedPCMFrames(const uint8_t *buffer, size_t bytes);
  11. private:
  12. std::ofstream namedPipeFile;
  13. };