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}
This commit is contained in:
Per Åhgren
2020-12-08 09:40:35 +01:00
committed by Commit Bot
parent 2f0dcc8eb9
commit 12dc274749

View File

@ -714,7 +714,7 @@ class RTC_EXPORT AudioProcessing : public rtc::RefCountInterface {
static constexpr int kMaxNativeSampleRateHz =
kNativeSampleRatesHz[kNumNativeSampleRates - 1];
static const int kChunkSizeMs = 10;
static constexpr int kChunkSizeMs = 10;
};
class RTC_EXPORT AudioProcessingBuilder {