mirror of
https://github.com/badaix/snapcast.git
synced 2025-05-11 08:06:41 +02:00
Rename onChunkRead to onNewChunk
This commit is contained in:
parent
01ce9a60c0
commit
ed0521a1d2
7 changed files with 16 additions and 5 deletions
|
@ -49,6 +49,7 @@ PcmEncoder::PcmEncoder(const std::string& codecOptions) : Encoder(codecOptions)
|
|||
|
||||
void PcmEncoder::encode(const msg::PcmChunk* chunk)
|
||||
{
|
||||
// copy the chunk into a shared_ptr
|
||||
auto pcmChunk = std::make_shared<msg::PcmChunk>(*chunk);
|
||||
listener_->onChunkEncoded(this, pcmChunk, pcmChunk->durationMs());
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue