mirror of
https://github.com/badaix/snapcast.git
synced 2025-05-10 15:46:42 +02:00
moved definition into implementation
This commit is contained in:
parent
4c13254587
commit
31ba0e36bd
3 changed files with 15 additions and 9 deletions
|
@ -180,8 +180,8 @@ void metadata_callback(const FLAC__StreamDecoder *decoder, const FLAC__StreamMet
|
||||||
{
|
{
|
||||||
((FlacDecoder*)client_data)->cacheInfo_.sampleRate_ = metadata->data.stream_info.sample_rate;
|
((FlacDecoder*)client_data)->cacheInfo_.sampleRate_ = metadata->data.stream_info.sample_rate;
|
||||||
logO << "sample rate : " << metadata->data.stream_info.sample_rate << "Hz\n";
|
logO << "sample rate : " << metadata->data.stream_info.sample_rate << "Hz\n";
|
||||||
logO << "channels : " << metadata->data.stream_info.channels << "\n";
|
|
||||||
logO << "bits per sample: " << metadata->data.stream_info.bits_per_sample << "\n";
|
logO << "bits per sample: " << metadata->data.stream_info.bits_per_sample << "\n";
|
||||||
|
logO << "channels : " << metadata->data.stream_info.channels << "\n";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -107,6 +107,18 @@ void StreamSession::add(const shared_ptr<const msg::BaseMessage>& message)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
bool StreamSession::active() const
|
||||||
|
{
|
||||||
|
return active_;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
void StreamSession::setBufferMs(size_t bufferMs)
|
||||||
|
{
|
||||||
|
bufferMs_ = bufferMs;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
bool StreamSession::send(const msg::BaseMessage* message) const
|
bool StreamSession::send(const msg::BaseMessage* message) const
|
||||||
{
|
{
|
||||||
// logO << "send: " << message->type << ", size: " << message->size << ", id: " << message->id << ", refers: " << message->refersTo << "\n";
|
// logO << "send: " << message->type << ", size: " << message->size << ", id: " << message->id << ", refers: " << message->refersTo << "\n";
|
||||||
|
|
|
@ -67,16 +67,10 @@ public:
|
||||||
/// Sends a message to the client (asynchronous)
|
/// Sends a message to the client (asynchronous)
|
||||||
void add(const std::shared_ptr<const msg::BaseMessage>& message);
|
void add(const std::shared_ptr<const msg::BaseMessage>& message);
|
||||||
|
|
||||||
bool active() const
|
bool active() const;
|
||||||
{
|
|
||||||
return active_;
|
|
||||||
}
|
|
||||||
|
|
||||||
/// Max playout latency. No need to send PCM data that is older than bufferMs
|
/// Max playout latency. No need to send PCM data that is older than bufferMs
|
||||||
void setBufferMs(size_t bufferMs)
|
void setBufferMs(size_t bufferMs);
|
||||||
{
|
|
||||||
bufferMs_ = bufferMs;
|
|
||||||
}
|
|
||||||
|
|
||||||
std::string macAddress;
|
std::string macAddress;
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue