mirror of
https://github.com/badaix/snapcast.git
synced 2025-05-19 20:16:15 +02:00
Remove unused code
This commit is contained in:
parent
b348bb3379
commit
a5f79cdf90
3 changed files with 16 additions and 17 deletions
|
@ -203,6 +203,21 @@ cs::time_point_clk Stream::getNextPlayerChunk(void* outputBuffer, uint32_t frame
|
|||
memcpy(static_cast<char*>(outputBuffer) + pos * format_.frameSize(), read_buffer_.data() + (pos - n) * format_.frameSize(),
|
||||
size * format_.frameSize());
|
||||
}
|
||||
// -- --
|
||||
// - - - -
|
||||
// - - - -
|
||||
// - -- -
|
||||
|
||||
// -- --
|
||||
// - - - -
|
||||
// - -- - -
|
||||
// - -- -
|
||||
|
||||
// -- --
|
||||
// - - - -
|
||||
// - -_ - -
|
||||
// - -- -
|
||||
|
||||
else
|
||||
{
|
||||
// Read all input frames, but skip a frame per slice when writing to the output.
|
||||
|
|
|
@ -66,22 +66,6 @@ void StreamServer::addSession(std::shared_ptr<StreamSession> session)
|
|||
}
|
||||
|
||||
|
||||
// void StreamServer::onMetadataChanged(const PcmStream* pcmStream, std::shared_ptr<msg::StreamTags> meta)
|
||||
// {
|
||||
// // Send meta to all connected clients
|
||||
|
||||
// std::lock_guard<std::recursive_mutex> mlock(sessionsMutex_);
|
||||
// for (const auto& s : sessions_)
|
||||
// {
|
||||
// if (auto session = s.lock())
|
||||
// {
|
||||
// if (session->pcmStream().get() == pcmStream)
|
||||
// session->send(meta);
|
||||
// }
|
||||
// }
|
||||
// }
|
||||
|
||||
|
||||
void StreamServer::onChunkEncoded(const PcmStream* pcmStream, bool isDefaultStream, std::shared_ptr<msg::PcmChunk> chunk, double /*duration*/)
|
||||
{
|
||||
// LOG(TRACE, LOG_TAG) << "onChunkRead (" << pcmStream->getName() << "): " << duration << "ms\n";
|
||||
|
|
|
@ -34,10 +34,10 @@
|
|||
#include "encoder/encoder.hpp"
|
||||
#include "jsonrpcpp.hpp"
|
||||
#include "message/codec_header.hpp"
|
||||
#include "properties.hpp"
|
||||
#include "server_settings.hpp"
|
||||
#include "stream_control.hpp"
|
||||
#include "stream_uri.hpp"
|
||||
#include "properties.hpp"
|
||||
|
||||
|
||||
namespace bp = boost::process;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue