From 101f2cb5389b5c5fce8e6f954181fddbbeccbdc8 Mon Sep 17 00:00:00 2001 From: elinor Date: Mon, 2 Apr 2018 14:03:27 +0300 Subject: [PATCH] Naming convention fix in decoder.go --- decoder.go | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/decoder.go b/decoder.go index 50453bb..fe888ac 100644 --- a/decoder.go +++ b/decoder.go @@ -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) -- 2.48.1