mirror of
https://github.com/mollyim/webrtc.git
synced 2025-05-13 05:40:42 +01:00
Delete deprecated variants for parsing/building AudioLevelExtension
Bug: webrtc:15788 Change-Id: I37034b9b1daf7b26dd5e66156e71c63e2fb85b21 Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/345520 Auto-Submit: Danil Chapovalov <danilchap@webrtc.org> Commit-Queue: Åsa Persson <asapersson@webrtc.org> Reviewed-by: Åsa Persson <asapersson@webrtc.org> Cr-Commit-Position: refs/heads/main@{#42152}
This commit is contained in:
parent
bc5c5e9d66
commit
54dec3f3d7
2 changed files with 0 additions and 29 deletions
|
@ -181,23 +181,6 @@ bool AudioLevelExtension::Write(rtc::ArrayView<uint8_t> data,
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
bool AudioLevelExtension::Parse(rtc::ArrayView<const uint8_t> data,
|
|
||||||
bool* voice_activity,
|
|
||||||
uint8_t* audio_level) {
|
|
||||||
AudioLevel extension;
|
|
||||||
Parse(data, &extension);
|
|
||||||
*voice_activity = extension.voice_activity();
|
|
||||||
*audio_level = extension.level();
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
|
|
||||||
bool AudioLevelExtension::Write(rtc::ArrayView<uint8_t> data,
|
|
||||||
bool voice_activity,
|
|
||||||
uint8_t audio_level) {
|
|
||||||
AudioLevel extension(voice_activity, audio_level);
|
|
||||||
return Write(data, extension);
|
|
||||||
}
|
|
||||||
|
|
||||||
// An RTP Header Extension for Mixer-to-Client Audio Level Indication
|
// An RTP Header Extension for Mixer-to-Client Audio Level Indication
|
||||||
//
|
//
|
||||||
// https://tools.ietf.org/html/rfc6465
|
// https://tools.ietf.org/html/rfc6465
|
||||||
|
|
|
@ -96,18 +96,6 @@ class AudioLevelExtension {
|
||||||
return kValueSizeBytes;
|
return kValueSizeBytes;
|
||||||
}
|
}
|
||||||
static bool Write(rtc::ArrayView<uint8_t> data, const AudioLevel& extension);
|
static bool Write(rtc::ArrayView<uint8_t> data, const AudioLevel& extension);
|
||||||
|
|
||||||
[[deprecated("Use AudioLevel struct")]] static bool Parse(
|
|
||||||
rtc::ArrayView<const uint8_t> data,
|
|
||||||
bool* voice_activity,
|
|
||||||
uint8_t* audio_level);
|
|
||||||
[[deprecated("Use AudioLevel struct")]] static size_t ValueSize(
|
|
||||||
bool voice_activity,
|
|
||||||
uint8_t audio_level) {
|
|
||||||
return kValueSizeBytes;
|
|
||||||
}
|
|
||||||
[[deprecated("Use AudioLevel struct")]] static bool
|
|
||||||
Write(rtc::ArrayView<uint8_t> data, bool voice_activity, uint8_t audio_level);
|
|
||||||
};
|
};
|
||||||
|
|
||||||
class CsrcAudioLevel {
|
class CsrcAudioLevel {
|
||||||
|
|
Loading…
Reference in a new issue