moved definition into implementation

This commit is contained in:
badaix 2016-01-23 12:59:38 +01:00
parent 4c13254587
commit 31ba0e36bd
3 changed files with 15 additions and 9 deletions

View file

@ -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";
}
}

View file

@ -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";

View file

@ -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;