mirror of
https://github.com/telegramdesktop/tdesktop
synced 2025-01-10 08:51:12 +00:00
Fixed build for old OS X.
This commit is contained in:
parent
697fdd4294
commit
b21f72fef0
@ -1749,7 +1749,7 @@ public:
|
||||
return false;
|
||||
}
|
||||
|
||||
int64 sum = std::accumulate(peaks.cbegin(), peaks.cend(), 0ULL);
|
||||
auto sum = std::accumulate(peaks.cbegin(), peaks.cend(), 0LL);
|
||||
peak = qMax(int32(sum * 1.8 / peaks.size()), 2500);
|
||||
|
||||
result.resize(peaks.size());
|
||||
|
@ -29,6 +29,8 @@ Copyright (c) 2014-2017 John Preston, https://desktop.telegram.org
|
||||
#define AL_ALEXT_PROTOTYPES
|
||||
#include <AL/alext.h>
|
||||
|
||||
#include <numeric>
|
||||
|
||||
namespace Media {
|
||||
namespace Capture {
|
||||
namespace {
|
||||
@ -412,7 +414,7 @@ void Instance::Inner::onStop(bool needResult) {
|
||||
}
|
||||
}
|
||||
|
||||
int64 sum = std::accumulate(peaks.cbegin(), peaks.cend(), 0ULL);
|
||||
auto sum = std::accumulate(peaks.cbegin(), peaks.cend(), 0LL);
|
||||
peak = qMax(int32(sum * 1.8 / peaks.size()), 2500);
|
||||
|
||||
waveform.resize(peaks.size());
|
||||
|
Loading…
Reference in New Issue
Block a user