mirror of
https://github.com/badaix/snapcast.git
synced 2025-07-24 03:48:32 +02:00
Remove most usages of "new" and "malloc" in the client
This commit is contained in:
parent
689f550049
commit
8c8226f2dc
9 changed files with 24 additions and 31 deletions
|
@ -53,7 +53,7 @@
|
|||
class Controller : public MessageReceiver
|
||||
{
|
||||
public:
|
||||
Controller(const ClientSettings& settings, std::shared_ptr<MetadataAdapter> meta);
|
||||
Controller(const ClientSettings& settings, std::unique_ptr<MetadataAdapter> meta);
|
||||
void start();
|
||||
void run();
|
||||
void stop();
|
||||
|
@ -78,7 +78,7 @@ private:
|
|||
std::shared_ptr<Stream> stream_;
|
||||
std::unique_ptr<decoder::Decoder> decoder_;
|
||||
std::unique_ptr<Player> player_;
|
||||
std::shared_ptr<MetadataAdapter> meta_;
|
||||
std::unique_ptr<MetadataAdapter> meta_;
|
||||
std::unique_ptr<msg::ServerSettings> serverSettings_;
|
||||
std::unique_ptr<msg::CodecHeader> headerChunk_;
|
||||
std::mutex receiveMutex_;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue