Skip to content

Commit

Permalink
Update packages/react-native-audio-api/common/cpp/core/AudioBus.cpp
Browse files Browse the repository at this point in the history
  • Loading branch information
michalsek authored Nov 26, 2024
1 parent 625cf45 commit 9b3ebd2
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ void AudioBus::scale(float value) {
float AudioBus::maxAbsValue() const {
float maxAbsValue = 1.0f;

for (auto it = channels_.begin(); it != channels_.end(); it += 1) {
for (auto it = channels_.begin(); it != channels_.end(); ++it) {
float channelMaxAbsValue = it->get()->getMaxAbsValue();
maxAbsValue = std::max(maxAbsValue, channelMaxAbsValue);
}
Expand Down

0 comments on commit 9b3ebd2

Please sign in to comment.