// Copyright 2012 The Chromium Authors // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #ifndef MEDIA_BASE_SAMPLE_RATES_H_ #define MEDIA_BASE_SAMPLE_RATES_H_ #include "media/base/media_export.h" namespace media { // Enumeration used for histogramming sample rates into distinct buckets. // Logged to UMA, so never reuse a value, always add new/greater ones! enum AudioSampleRate { … }; // Helper method to convert integral values to their respective enum values, // returns false for unexpected sample rates. MEDIA_EXPORT bool ToAudioSampleRate(int sample_rate, AudioSampleRate* asr); } // namespace media #endif // MEDIA_BASE_SAMPLE_RATES_H_