diff options
author | Bent Bisballe Nyeng <deva@aasimon.org> | 2017-02-17 12:34:51 +0100 |
---|---|---|
committer | Bent Bisballe Nyeng <deva@aasimon.org> | 2017-02-17 13:31:39 +0100 |
commit | 70e08d1325b2cdd0e9c16a193cc6ed10d2d21617 (patch) | |
tree | a6b409a6efed58280c5f9af71ff7fd517873ad4e /src/powerlist.cc | |
parent | baed7f32c7608532012a90804629b54e2d8c6f81 (diff) |
Win32 build fixes.
Diffstat (limited to 'src/powerlist.cc')
-rw-r--r-- | src/powerlist.cc | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/powerlist.cc b/src/powerlist.cc index 9b0bd77..b502d03 100644 --- a/src/powerlist.cc +++ b/src/powerlist.cc @@ -48,7 +48,7 @@ unsigned int const MIN_SAMPLE_SET_SIZE = 26u; // Enable to calculate power on old samples without power attribute //#define AUTO_CALCULATE_POWER -unsigned int const SIZE = 500u; +unsigned int const LOAD_SIZE = 500u; PowerList::PowerList(Random& rand) : rand(rand) @@ -82,7 +82,7 @@ Channel* PowerList::getMasterChannel() Channel* c = pair.first; AudioFile* af = pair.second; - af->load(SIZE); + af->load(LOAD_SIZE); float silence{0.f}; std::size_t silence_length{4u}; @@ -176,7 +176,7 @@ void PowerList::finalise() DEBUG(powerlist, "Calculating power\n"); float power{0.f}; - for(auto s = 0u; s < SIZE && s < master->size; ++s) + for(auto s = 0u; s < LOAD_SIZE && s < master->size; ++s) { power += master->data[s] * master->data[s]; } |