Chromium Code Reviews| Index: webrtc/modules/audio_coding/neteq/decoder_database.h |
| diff --git a/webrtc/modules/audio_coding/neteq/decoder_database.h b/webrtc/modules/audio_coding/neteq/decoder_database.h |
| index 36248562bc483332917fc9f1ad4b0603f56ec6be..1289bddadfde344479743d9f59c47c9cea99243f 100644 |
| --- a/webrtc/modules/audio_coding/neteq/decoder_database.h |
| +++ b/webrtc/modules/audio_coding/neteq/decoder_database.h |
| @@ -97,6 +97,17 @@ class DecoderDatabase { |
| int sample_rate_hz; |
| }; |
| const rtc::Optional<CngDecoder> cng_decoder_; |
| + |
| + enum class Subtype { |
| + kNormal, |
| + kComfortNoise, |
| + kDtmf, |
| + kRed |
| + }; |
|
kwiberg-webrtc
2016/09/30 11:28:24
Do you have to tell the compiler to store this in
ossu
2016/09/30 11:36:47
According to a quick look-on-the-internet, enum cl
kwiberg-webrtc
2016/09/30 11:45:37
Look at it this way: reading and writing 1 byte is
ossu
2016/09/30 11:50:34
Just the other day I was asked to change two uint8
kwiberg-webrtc
2016/09/30 13:05:27
The reason we prefer int for integers rather than
ossu
2016/09/30 13:45:21
Alright. I've turned it into an int8_t and a quick
kwiberg-webrtc
2016/09/30 16:55:00
Wohoo! That's the best kind of improvement, right?
|
| + |
| + static Subtype SubtypeFromFormat(const SdpAudioFormat& format); |
| + |
| + const Subtype subtype_; |
| }; |
| // Maximum value for 8 bits, and an invalid RTP payload type (since it is |