blob: a55894c62f34e68074b503b594cbccbf2e02e940 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
|
# backported fix for newer compilers
--- src/async/audio/AsyncAudioDeviceAlsa.cpp.orig 2017-12-27 16:32:27.185098621 +0000
+++ src/async/audio/AsyncAudioDeviceAlsa.cpp 2017-12-27 16:33:33.468067578 +0000
@@ -548,7 +548,7 @@
return false;
}
- if (::abs(real_rate - sample_rate) > 100)
+ if (::abs(static_cast<int>(real_rate) - sample_rate) > 100)
{
cerr << "*** ERROR: The sample rate could not be set to "
<< sample_rate << "Hz for ALSA device \"" << dev_name << "\". "
|