mirror of
https://github.com/badaix/snapcast.git
synced 2025-05-30 09:26:15 +02:00
Code comments
This commit is contained in:
parent
4db8696889
commit
c1cb395eb0
6 changed files with 37 additions and 3 deletions
|
@ -29,6 +29,11 @@
|
|||
|
||||
class PipeReader;
|
||||
|
||||
|
||||
/// Callback interface for users of PipeReader
|
||||
/**
|
||||
* Users of PipeReader should implement this to get the data
|
||||
*/
|
||||
class PipeListener
|
||||
{
|
||||
public:
|
||||
|
@ -47,12 +52,14 @@ public:
|
|||
class PipeReader : public EncoderListener
|
||||
{
|
||||
public:
|
||||
/// ctor. Encoded PCM data is passed to the PipeListener
|
||||
PipeReader(PipeListener* pipeListener, const msg::SampleFormat& sampleFormat, const std::string& codec, const std::string& fifoName);
|
||||
virtual ~PipeReader();
|
||||
|
||||
void start();
|
||||
void stop();
|
||||
|
||||
/// Implementation of EncoderListener::onChunkEncoded
|
||||
virtual void onChunkEncoded(const Encoder* encoder, msg::PcmChunk* chunk, double duration);
|
||||
msg::Header* getHeader();
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue