mirror of
https://github.com/badaix/snapcast.git
synced 2025-05-18 11:36:14 +02:00
Tidy up code
This commit is contained in:
parent
f5d4fcaf43
commit
7597f15d24
22 changed files with 74 additions and 85 deletions
|
@ -67,11 +67,6 @@ Stream::Stream(const SampleFormat& in_format, const SampleFormat& out_format)
|
|||
}
|
||||
|
||||
|
||||
Stream::~Stream()
|
||||
{
|
||||
}
|
||||
|
||||
|
||||
void Stream::setRealSampleRate(double sampleRate)
|
||||
{
|
||||
if (sampleRate == format_.rate())
|
||||
|
@ -95,7 +90,7 @@ void Stream::setBufferLen(size_t bufferLenMs)
|
|||
void Stream::clearChunks()
|
||||
{
|
||||
std::lock_guard<std::mutex> lock(mutex_);
|
||||
while (chunks_.size() > 0)
|
||||
while (!chunks_.empty())
|
||||
chunks_.pop();
|
||||
resetBuffers();
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue