From: Hraban Luyat Date: Wed, 11 Jan 2017 00:46:08 +0000 (+0000) Subject: Update godoc on updated method names X-Git-Tag: v2.0.0~31 X-Git-Url: http://www.git.stargrave.org/?a=commitdiff_plain;h=165dcfb3708d15d4765120638d208e284e3d55c3;p=go-opus.git Update godoc on updated method names --- diff --git a/encoder.go b/encoder.go index b7217b6..2c75788 100644 --- a/encoder.go +++ b/encoder.go @@ -244,7 +244,7 @@ func (enc *Encoder) SetBitrate(bitrate int) error { 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 @@ func (enc *Encoder) SetBitrateToAuto() error { 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))