]> Sergey Matveev's repositories - go-opus.git/commitdiff
Naming convention fix in decoder.go
authorelinor <elinor.alp@gmail.com>
Mon, 2 Apr 2018 11:03:27 +0000 (14:03 +0300)
committerelinor <elinor.alp@gmail.com>
Mon, 2 Apr 2018 11:03:27 +0000 (14:03 +0300)
decoder.go

index 50453bb039f603fbea68521d1dba7334aadfeda0..fe888ac1e323cabb5da65575f5725115662fc5d7 100644 (file)
@@ -112,7 +112,7 @@ func (dec *Decoder) DecodeFloat32(data []byte, pcm []float32) (int, error) {
        return n, nil
 }
 
-// Decode encoded Opus data into the supplied buffer with forward error
+// DecodeFEC encoded Opus data into the supplied buffer with forward error
 // correction. The supplied buffer will be entirely filled.
 func (dec *Decoder) DecodeFEC(data []byte, pcm []int16) error {
        if dec.p == nil {
@@ -138,7 +138,7 @@ func (dec *Decoder) DecodeFEC(data []byte, pcm []int16) error {
        return nil
 }
 
-// Decode encoded Opus data into the supplied buffer with forward error
+// DecodeFECFloat32 encoded Opus data into the supplied buffer with forward error
 // correction. The supplied buffer will be entirely filled.
 func (dec *Decoder) DecodeFECFloat32(data []byte, pcm []float32) error {
        if dec.p == nil {
@@ -163,7 +163,8 @@ func (dec *Decoder) DecodeFECFloat32(data []byte, pcm []float32) error {
        return nil
 }
 
-// Gets the duration (in samples) of the last packet successfully decoded or concealed.
+// LastPacketDuration gets the duration (in samples)
+// of the last packet successfully decoded or concealed.
 func (dec *Decoder) LastPacketDuration() (int, error) {
        var samples C.opus_int32
        res := C.bridge_decoder_get_last_packet_duration(dec.p, &samples)