| Index: webrtc/modules/audio_processing/include/audio_processing.h
|
| diff --git a/webrtc/modules/audio_processing/include/audio_processing.h b/webrtc/modules/audio_processing/include/audio_processing.h
|
| index 44ff7327ffeb849184869c7bfadc921438093821..aab20b293e4871a68116c8986260ace46f9c0377 100644
|
| --- a/webrtc/modules/audio_processing/include/audio_processing.h
|
| +++ b/webrtc/modules/audio_processing/include/audio_processing.h
|
| @@ -498,9 +498,15 @@ class AudioProcessing {
|
| kSampleRate48kHz = 48000
|
| };
|
|
|
| - static const int kNativeSampleRatesHz[];
|
| - static const size_t kNumNativeSampleRates;
|
| - static const int kMaxNativeSampleRateHz;
|
| + // TODO(kwiberg): We currently need to support a compiler (Visual C++) that
|
| + // complains if we don't explicitly state the size of the array here. Remove
|
| + // the size when that's no longer the case.
|
| + static constexpr int kNativeSampleRatesHz[4] = {
|
| + kSampleRate8kHz, kSampleRate16kHz, kSampleRate32kHz, kSampleRate48kHz};
|
| + static constexpr size_t kNumNativeSampleRates =
|
| + arraysize(kNativeSampleRatesHz);
|
| + static constexpr int kMaxNativeSampleRateHz =
|
| + kNativeSampleRatesHz[kNumNativeSampleRates - 1];
|
|
|
| static const int kChunkSizeMs = 10;
|
| };
|
|
|