Naming convention fix in decoder.go
This commit is contained in:
parent
bd2f797822
commit
101f2cb538
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue