commit | 12dc274749912f5e82545819697cc026c4cff391 | [log] [tgz] |
---|---|---|
author | Per Åhgren <peah@webrtc.org> | Tue Dec 08 08:40:35 2020 |
committer | Commit Bot <commit-bot@chromium.org> | Tue Dec 08 10:46:15 2020 |
tree | df9d94e6e9b68be4af1e6fd4a0780ebf93d46678 | |
parent | 2f0dcc8eb9a5ed16cfb3a719a014532ad8786c9e [diff] |
Make the static variable kChunkSizeMs constexpr This CL makes the static variable kChunkSizeMs constexpr to avoid potential issues on some compilers. Bug: None Change-Id: I8e2b1819561ec96fb17d3899af95405cc36a6097 Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/196640 Reviewed-by: Mirko Bonadei <mbonadei@webrtc.org> Commit-Queue: Per Åhgren <peah@webrtc.org> Cr-Commit-Position: refs/heads/master@{#32795}
diff --git a/modules/audio_processing/include/audio_processing.h b/modules/audio_processing/include/audio_processing.h index b96ce92..802ff9d 100644 --- a/modules/audio_processing/include/audio_processing.h +++ b/modules/audio_processing/include/audio_processing.h
@@ -714,7 +714,7 @@ static constexpr int kMaxNativeSampleRateHz = kNativeSampleRatesHz[kNumNativeSampleRates - 1]; - static const int kChunkSizeMs = 10; + static constexpr int kChunkSizeMs = 10; }; class RTC_EXPORT AudioProcessingBuilder {