Commit 0ecc3394 authored by Max Kellermann's avatar Max Kellermann

Merge branch 'v0.22.x' into master

parents 72598537 14061442
...@@ -32,6 +32,8 @@ ...@@ -32,6 +32,8 @@
#include "Watch.hxx" #include "Watch.hxx"
#include <cassert>
namespace ODBus { namespace ODBus {
WatchManager::Watch::Watch(EventLoop &event_loop, WatchManager::Watch::Watch(EventLoop &event_loop,
......
...@@ -34,8 +34,7 @@ ...@@ -34,8 +34,7 @@
#include "util/StringView.hxx" #include "util/StringView.hxx"
#include <cassert> #include <cassert>
#include <cstring>
#include <string.h>
#ifdef HAVE_UN #ifdef HAVE_UN
#include <sys/un.h> #include <sys/un.h>
......
...@@ -203,7 +203,7 @@ OSXOutput::GetVolume() ...@@ -203,7 +203,7 @@ OSXOutput::GetVolume()
const auto vol = AudioObjectGetPropertyDataT<Float32>(dev_id, const auto vol = AudioObjectGetPropertyDataT<Float32>(dev_id,
aopa); aopa);
return static_cast<int>(vol * 100.0); return static_cast<int>(vol * 100.0f);
} }
void void
...@@ -420,10 +420,11 @@ osx_output_set_device_format(AudioDeviceID dev_id, ...@@ -420,10 +420,11 @@ osx_output_set_device_format(AudioDeviceID dev_id,
float score = osx_output_score_format(format_desc, target_format); float score = osx_output_score_format(format_desc, target_format);
// print all (linear pcm) formats and their rating // print all (linear pcm) formats and their rating
if (score > 0.0) if (score > 0.0f)
FormatDebug(osx_output_domain, FormatDebug(osx_output_domain,
"Format: %s rated %f", "Format: %s rated %f",
StreamDescriptionToString(format_desc).c_str(), score); StreamDescriptionToString(format_desc).c_str(),
(double)score);
if (score > output_score) { if (score > output_score) {
output_score = score; output_score = score;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment