encoder.go | 4 ++-- diff --git a/encoder.go b/encoder.go index b7217b6d75b2adeedb81e77c65083ca4d59b5b3f..2c75788173de1acb30a041e2b9a90fa0ef300f6a 100644 --- a/encoder.go +++ b/encoder.go @@ -244,7 +244,7 @@ } return nil } -// SetBitrateAuto will allow the encoder to automatically set the bitrate +// SetBitrateToAuto will allow the encoder to automatically set the bitrate func (enc *Encoder) SetBitrateToAuto() error { res := C.bridge_encoder_set_bitrate(enc.p, C.opus_int32(C.CONST_BITRATE_AUTO)) if res != C.OPUS_OK { @@ -253,7 +253,7 @@ } return nil } -// SetBitrateMax causes the encoder to use as much rate as it can. This can be +// SetBitrateToMax causes the encoder to use as much rate as it can. This can be // useful for controlling the rate by adjusting the output buffer size. func (enc *Encoder) SetBitrateToMax() error { res := C.bridge_encoder_set_bitrate(enc.p, C.opus_int32(C.CONST_BITRATE_MAX))