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:
@ -126,9 +126,7 @@ class AudioEncoder {
|
||||
// use when decoding the bitstream. The encoder would typically use this
|
||||
// information to adjust the quality of the encoding. The default
|
||||
// implementation just returns true.
|
||||
// TODO(kwiberg): Change return value to void, since it doesn't matter
|
||||
// whether the encoder approved of the max playback rate or not.
|
||||
virtual bool SetMaxPlaybackRate(int frequency_hz);
|
||||
virtual void SetMaxPlaybackRate(int frequency_hz);
|
||||
|
||||
// Tells the encoder what the projected packet loss rate is. The rate is in
|
||||
// the range [0.0, 1.0]. The encoder would typically use this information to
|
||||
|
||||
Reference in New Issue
Block a user