mirror of
https://github.com/badaix/snapcast.git
synced 2025-05-10 23:56:43 +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;
|
||||
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 << "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
|
||||
{
|
||||
// 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)
|
||||
void add(const std::shared_ptr<const msg::BaseMessage>& message);
|
||||
|
||||
bool active() const
|
||||
{
|
||||
return active_;
|
||||
}
|
||||
bool active() const;
|
||||
|
||||
/// Max playout latency. No need to send PCM data that is older than bufferMs
|
||||
void setBufferMs(size_t bufferMs)
|
||||
{
|
||||
bufferMs_ = bufferMs;
|
||||
}
|
||||
void setBufferMs(size_t bufferMs);
|
||||
|
||||
std::string macAddress;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue