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 {
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 {
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)