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:
@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user