mirror of
https://github.com/badaix/snapcast.git
synced 2025-07-21 02:17:39 +02:00
Fix linter warnings
This commit is contained in:
parent
66868e2501
commit
5c41afd9e3
31 changed files with 131 additions and 116 deletions
|
@ -30,6 +30,7 @@
|
|||
|
||||
// standard headers
|
||||
#include <iostream>
|
||||
#include <memory>
|
||||
|
||||
|
||||
using namespace std;
|
||||
|
@ -41,7 +42,7 @@ static constexpr auto LOG_TAG = "FlacEnc";
|
|||
|
||||
FlacEncoder::FlacEncoder(const std::string& codecOptions) : Encoder(codecOptions), encoder_(nullptr), pcmBufferSize_(0), encodedSamples_(0), flacChunk_(nullptr)
|
||||
{
|
||||
headerChunk_.reset(new msg::CodecHeader("flac"));
|
||||
headerChunk_ = std::make_shared<msg::CodecHeader>("flac");
|
||||
pcmBuffer_ = static_cast<FLAC__int32*>(malloc(pcmBufferSize_ * sizeof(FLAC__int32)));
|
||||
metadata_[0] = nullptr;
|
||||
metadata_[1] = nullptr;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue