mirror of
https://github.com/badaix/snapcast.git
synced 2025-06-06 12:51:42 +02:00
Reformat code
This commit is contained in:
parent
58e82ef9e8
commit
d5677b6f78
31 changed files with 236 additions and 330 deletions
|
@ -1,6 +1,6 @@
|
|||
/***
|
||||
This file is part of snapcast
|
||||
Copyright (C) 2014-2024 Johannes Pohl
|
||||
Copyright (C) 2014-2025 Johannes Pohl
|
||||
|
||||
This program is free software: you can redistribute it and/or modify
|
||||
it under the terms of the GNU General Public License as published by
|
||||
|
@ -53,7 +53,7 @@ std::vector<PcmDevice> FilePlayer::pcm_list(const std::string& parameter)
|
|||
|
||||
|
||||
FilePlayer::FilePlayer(boost::asio::io_context& io_context, const ClientSettings::Player& settings, std::shared_ptr<Stream> stream)
|
||||
: Player(io_context, settings, stream), timer_(io_context), file_(nullptr)
|
||||
: Player(io_context, settings, std::move(stream)), timer_(io_context), file_(nullptr)
|
||||
{
|
||||
auto params = utils::string::split_pairs(settings.parameter, ',', '=');
|
||||
string filename;
|
||||
|
@ -130,9 +130,8 @@ void FilePlayer::loop()
|
|||
next_request_ = now + 1ms;
|
||||
|
||||
timer_.expires_at(next_request_);
|
||||
timer_.async_wait(
|
||||
[this](boost::system::error_code ec)
|
||||
{
|
||||
timer_.async_wait([this](boost::system::error_code ec)
|
||||
{
|
||||
if (ec)
|
||||
return;
|
||||
requestAudio();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue