NamedPipeAudioSink.h 373 B

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