Change return type of AudioEncoder::SetMaxPlaybackRate to void
There's no point in returning a status code, since the max playback rate is only a suggestion that the encoder is free to disregard. Review URL: https://codereview.webrtc.org/1332573003 Cr-Commit-Position: refs/heads/master@{#9900}
This commit is contained in:
@ -109,8 +109,8 @@ bool AudioEncoderCopyRed::SetApplication(Application application) {
|
||||
return speech_encoder_->SetApplication(application);
|
||||
}
|
||||
|
||||
bool AudioEncoderCopyRed::SetMaxPlaybackRate(int frequency_hz) {
|
||||
return speech_encoder_->SetMaxPlaybackRate(frequency_hz);
|
||||
void AudioEncoderCopyRed::SetMaxPlaybackRate(int frequency_hz) {
|
||||
speech_encoder_->SetMaxPlaybackRate(frequency_hz);
|
||||
}
|
||||
|
||||
void AudioEncoderCopyRed::SetProjectedPacketLossRate(double fraction) {
|
||||
|
||||
@ -51,7 +51,7 @@ class AudioEncoderCopyRed final : public AudioEncoder {
|
||||
bool SetFec(bool enable) override;
|
||||
bool SetDtx(bool enable) override;
|
||||
bool SetApplication(Application application) override;
|
||||
bool SetMaxPlaybackRate(int frequency_hz) override;
|
||||
void SetMaxPlaybackRate(int frequency_hz) override;
|
||||
void SetProjectedPacketLossRate(double fraction) override;
|
||||
void SetTargetBitrate(int target_bps) override;
|
||||
void SetMaxBitrate(int max_bps) override;
|
||||
|
||||
Reference in New Issue
Block a user