mirror of
https://github.com/badaix/snapcast.git
synced 2025-05-10 23:56:43 +02:00
encoder header is shared ptr
This commit is contained in:
parent
bfdca3038d
commit
d44232114a
7 changed files with 12 additions and 15 deletions
|
@ -28,7 +28,7 @@ using namespace std;
|
|||
FlacEncoder::FlacEncoder(const std::string& codecOptions) : Encoder(codecOptions), encoder_(NULL), pcmBufferSize_(0), encodedSamples_(0)
|
||||
{
|
||||
flacChunk_ = new msg::PcmChunk();
|
||||
headerChunk_ = new msg::Header("flac");
|
||||
headerChunk_.reset(new msg::Header("flac"));
|
||||
pcmBuffer_ = (FLAC__int32*)malloc(pcmBufferSize_ * sizeof(FLAC__int32));
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue