mirror of
https://github.com/badaix/snapcast.git
synced 2025-08-03 00:29:35 +02:00
use less raw pointers
This commit is contained in:
parent
4b9cee6159
commit
47d01960bf
7 changed files with 30 additions and 33 deletions
|
@ -51,7 +51,7 @@ class PcmListener
|
|||
{
|
||||
public:
|
||||
virtual void onStateChanged(const PcmStream* pcmStream, const ReaderState& state) = 0;
|
||||
virtual void onChunkRead(const PcmStream* pcmStream, const msg::PcmChunk* chunk, double duration) = 0;
|
||||
virtual void onChunkRead(const PcmStream* pcmStream, msg::PcmChunk* chunk, double duration) = 0;
|
||||
virtual void onResync(const PcmStream* pcmStream, double ms) = 0;
|
||||
};
|
||||
|
||||
|
|
|
@ -113,6 +113,7 @@ void PipeStream::worker()
|
|||
|
||||
if (!active_) break;
|
||||
|
||||
/// TODO: use less raw pointers, make this encoding more transparent
|
||||
encoder_->encode(chunk.get());
|
||||
|
||||
if (!active_) break;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue