зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1746472 - Remove the unused WebrtcAudioConduit::CodecConfigToWebRTCCodec. r=bwc
Differential Revision: https://phabricator.services.mozilla.com/D134138
This commit is contained in:
Родитель
bafea37b93
Коммит
acb36e0c6c
|
@ -674,22 +674,6 @@ bool WebrtcAudioConduit::SendReceiverRtcp(const uint8_t* aData,
|
|||
return true;
|
||||
}
|
||||
|
||||
/**
|
||||
* Converts between CodecConfig to WebRTC Codec Structure.
|
||||
*/
|
||||
|
||||
bool WebrtcAudioConduit::CodecConfigToWebRTCCodec(
|
||||
const AudioCodecConfig& codecInfo,
|
||||
webrtc::AudioSendStream::Config& config) {
|
||||
config.encoder_factory = webrtc::CreateBuiltinAudioEncoderFactory();
|
||||
|
||||
webrtc::AudioSendStream::Config::SendCodecSpec spec(
|
||||
codecInfo.mType, CodecConfigToLibwebrtcFormat(codecInfo));
|
||||
config.send_codec_spec = spec;
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
/**
|
||||
* Supported Sampling Frequencies.
|
||||
*/
|
||||
|
|
|
@ -181,10 +181,6 @@ class WebrtcAudioConduit : public AudioSessionConduit,
|
|||
WebrtcAudioConduit(const WebrtcAudioConduit& other) = delete;
|
||||
void operator=(const WebrtcAudioConduit& other) = delete;
|
||||
|
||||
// Function to convert between WebRTC and Conduit codec structures
|
||||
bool CodecConfigToWebRTCCodec(const AudioCodecConfig& codecInfo,
|
||||
webrtc::AudioSendStream::Config& config);
|
||||
|
||||
// Generate block size in sample length for a given sampling frequency
|
||||
unsigned int GetNum10msSamplesForFrequency(int samplingFreqHz) const;
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче