Add some comments, clean ups

This commit is contained in:
badaix 2020-05-10 21:52:19 +02:00
parent 2a6360a832
commit 184254b35f
6 changed files with 13 additions and 13 deletions

View file

@ -5,9 +5,9 @@
### Features
- Client: Windows support (Issue #24)
- Client: Add hardware mixer (Issue #318)
- Client: Add "script" and "none" mixer (Issue #302)
- Client: Add sharingmode for audio device (if supported)
- Client: add hardware mixer (Issue #318)
- Client: add "script" and "none" mixer (Issue #302)
- Client: add sharingmode for audio device (if supported)
- Logging: configurable sink and filters (Issue #30, #561, #122, #559)
- Librespot: add option "disable-audio-cache=[false|true]"
@ -18,6 +18,7 @@
- Client: high CPU load and crash during playback (Issue #609)
- Client: improved handling of USB audio disconnects (Issue #64)
- Client: latency is forgotten (Issue #476, #588)
- Client: fix segfault on mac when playback is paused (Issue #560)
- Server: fix crash if client disconnects during connect
### General

View file

@ -14,7 +14,7 @@
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
VERSION = 0.19.0
VERSION = 0.20.0
BIN = snapclient
ifeq ($(TARGET), FREEBSD)

View file

@ -367,8 +367,9 @@ void Controller::worker()
}
});
// // Do initial time sync with the server
// Do initial time sync with the server
sendTimeSyncMessage(50);
// Start receiver loop
getNextMessage();
}
else

View file

@ -48,7 +48,7 @@ public:
// void stop();
private:
using MdnsHandler = std::function<void(const boost::system::error_code&, const std::string&, uint16_t)>;
using MdnsHandler = std::function<void(const boost::system::error_code& ec, const std::string& host, uint16_t port)>;
void worker();
void reconnect();
void browseMdns(const MdnsHandler& handler);

View file

@ -271,10 +271,7 @@ int main(int argc, char** argv)
daemon = std::make_unique<Daemon>(user, group, pidFile);
LOG(NOTICE, LOG_TAG) << "daemonizing" << std::endl;
daemon->daemonize();
if (processPriority < -20)
processPriority = -20;
else if (processPriority > 19)
processPriority = 19;
processPriority = std::min(std::max(-20, processPriority), 19);
if (processPriority != 0)
setpriority(PRIO_PROCESS, 0, processPriority);
LOG(NOTICE, LOG_TAG) << "daemon started" << std::endl;

7
debian/changelog vendored
View file

@ -2,9 +2,9 @@ snapcast (0.20.0-1) unstable; urgency=medium
* Features
-Client: Windows support (Issue #24)
-Client: Add hardware mixer (Issue #318)
-Client: Add "script" and "none" mixer (Issue #302)
-Client: Add sharingmode for audio device (if supported)
-Client: add hardware mixer (Issue #318)
-Client: add "script" and "none" mixer (Issue #302)
-Client: add sharingmode for audio device (if supported)
-Logging: configurable sink and filters (Issue #30, #561, #122, #559)
-Librespot: add option "disable-audio-cache=[false|true]"
* Bugfixes
@ -13,6 +13,7 @@ snapcast (0.20.0-1) unstable; urgency=medium
-Client: high CPU load and crash during playback (Issue #609)
-Client: improved handling of USB audio disconnects (Issue #64)
-Client: latency is forgotten (Issue #476, #588)
-Client: fix segfault on mac when playback is paused (Issue #560)
-Server: fix crash if client disconnects during connect
* General
-Client: use less threads and thus less ressources