1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
5 #ifndef MEDIA_AUDIO_SAMPLE_RATES_H_
6 #define MEDIA_AUDIO_SAMPLE_RATES_H_
8 #include "media/base/media_export.h"
12 // Enumeration used for histogramming sample rates into distinct buckets.
13 // Logged to UMA, so never reuse a value, always add new/greater ones!
14 enum AudioSampleRate
{
26 kUnexpectedAudioSampleRate
// Must always be last!
29 // Helper method to convert integral values to their respective enum values,
30 // or kUnexpectedAudioSampleRate if no match exists.
31 MEDIA_EXPORT AudioSampleRate
AsAudioSampleRate(int sample_rate
);
35 #endif // MEDIA_AUDIO_SAMPLE_RATES_H_