]> Sergey Matveev's repositories - go-opus.git/commitdiff
Update godoc on updated method names
authorHraban Luyat <hraban@0brg.net>
Wed, 11 Jan 2017 00:46:08 +0000 (00:46 +0000)
committerHraban Luyat <hraban@0brg.net>
Wed, 11 Jan 2017 00:46:08 +0000 (00:46 +0000)
encoder.go

index b7217b6d75b2adeedb81e77c65083ca4d59b5b3f..2c75788173de1acb30a041e2b9a90fa0ef300f6a 100644 (file)
@@ -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))