decoder.go | 7 ++++--- diff --git a/decoder.go b/decoder.go index 50453bb039f603fbea68521d1dba7334aadfeda0..fe888ac1e323cabb5da65575f5725115662fc5d7 100644 --- a/decoder.go +++ b/decoder.go @@ -112,7 +112,7 @@ } 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 @@ } 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 @@ } 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)