OLD | NEW |
(Empty) | |
| 1 // Copyright 2016 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. |
| 4 |
| 5 #ifndef MEDIA_BASE_AUDIO_CODECS_H_ |
| 6 #define MEDIA_BASE_AUDIO_CODECS_H_ |
| 7 |
| 8 #include <string> |
| 9 #include "media/base/media_export.h" |
| 10 |
| 11 namespace media { |
| 12 |
| 13 enum AudioCodec { |
| 14 // These values are histogrammed over time; do not change their ordinal |
| 15 // values. When deleting a codec replace it with a dummy value; when adding a |
| 16 // codec, do so at the bottom before kAudioCodecMax, and update the value of |
| 17 // kAudioCodecMax to equal the new codec. |
| 18 kUnknownAudioCodec = 0, |
| 19 kCodecAAC = 1, |
| 20 kCodecMP3 = 2, |
| 21 kCodecPCM = 3, |
| 22 kCodecVorbis = 4, |
| 23 kCodecFLAC = 5, |
| 24 kCodecAMR_NB = 6, |
| 25 kCodecAMR_WB = 7, |
| 26 kCodecPCM_MULAW = 8, |
| 27 kCodecGSM_MS = 9, |
| 28 kCodecPCM_S16BE = 10, |
| 29 kCodecPCM_S24BE = 11, |
| 30 kCodecOpus = 12, |
| 31 kCodecEAC3 = 13, |
| 32 kCodecPCM_ALAW = 14, |
| 33 kCodecALAC = 15, |
| 34 kCodecAC3 = 16, |
| 35 // DO NOT ADD RANDOM AUDIO CODECS! |
| 36 // |
| 37 // The only acceptable time to add a new codec is if there is production code |
| 38 // that uses said codec in the same CL. |
| 39 |
| 40 // Must always be equal to the largest entry ever logged. |
| 41 kAudioCodecMax = kCodecAC3, |
| 42 }; |
| 43 |
| 44 std::string MEDIA_EXPORT GetCodecName(AudioCodec codec); |
| 45 |
| 46 } // namespace media |
| 47 |
| 48 #endif // MEDIA_BASE_AUDIO_CODECS_H_ |
OLD | NEW |