OLD | NEW |
---|---|
1 /* | 1 /* |
2 * Copyright (c) 2016 The WebRTC project authors. All Rights Reserved. | 2 * Copyright (c) 2016 The WebRTC project authors. All Rights Reserved. |
3 * | 3 * |
4 * Use of this source code is governed by a BSD-style license | 4 * Use of this source code is governed by a BSD-style license |
5 * that can be found in the LICENSE file in the root of the source | 5 * that can be found in the LICENSE file in the root of the source |
6 * tree. An additional intellectual property rights grant can be found | 6 * tree. An additional intellectual property rights grant can be found |
7 * in the file PATENTS. All contributing project authors may | 7 * in the file PATENTS. All contributing project authors may |
8 * be found in the AUTHORS file in the root of the source tree. | 8 * be found in the AUTHORS file in the root of the source tree. |
9 */ | 9 */ |
10 | 10 |
(...skipping 25 matching lines...) Expand all Loading... | |
36 ~SdpAudioFormat(); | 36 ~SdpAudioFormat(); |
37 | 37 |
38 SdpAudioFormat& operator=(const SdpAudioFormat&); | 38 SdpAudioFormat& operator=(const SdpAudioFormat&); |
39 SdpAudioFormat& operator=(SdpAudioFormat&&); | 39 SdpAudioFormat& operator=(SdpAudioFormat&&); |
40 bool operator<(const SdpAudioFormat& b) const; | 40 bool operator<(const SdpAudioFormat& b) const; |
41 | 41 |
42 std::string name; | 42 std::string name; |
43 int clockrate_hz; | 43 int clockrate_hz; |
44 int num_channels; | 44 int num_channels; |
45 Parameters parameters; | 45 Parameters parameters; |
46 // Parameters feedback_parameters; ?? | |
47 }; | 46 }; |
48 | 47 |
49 void swap(SdpAudioFormat& a, SdpAudioFormat& b); | 48 void swap(SdpAudioFormat& a, SdpAudioFormat& b); |
50 std::ostream& operator<<(std::ostream& os, const SdpAudioFormat& saf); | 49 std::ostream& operator<<(std::ostream& os, const SdpAudioFormat& saf); |
51 | 50 |
51 struct AudioCodecSpec { | |
52 SdpAudioFormat format; | |
53 bool allow_comfort_noise; // This encoder can be used with an external | |
ivoc
2016/07/08 13:06:07
How about just putting this in the SdpAudioFormat
ossu
2016/07/08 13:17:12
No, because it doesn't make sense in SdpAudioForma
ivoc
2016/07/08 13:37:34
Acknowledged.
| |
54 // comfort noise generator. | |
55 }; | |
56 | |
52 } // namespace webrtc | 57 } // namespace webrtc |
53 | 58 |
54 #endif // WEBRTC_MODULES_AUDIO_CODING_CODECS_AUDIO_FORMAT_H_ | 59 #endif // WEBRTC_MODULES_AUDIO_CODING_CODECS_AUDIO_FORMAT_H_ |
OLD | NEW |