opus-go/frame.go
2022-06-02 19:14:23 -04:00

14 lines
265 B
Go

package main
func parsePacket(in []byte) (c configuration, isStereo bool, frames [][]byte, err error) {
if len(in) < 1 {
err = errTooShortForTableOfContentsHeader
return
}
tocHeader := tableOfContentsHeader(in[0])
c = tocHeader.configuration()
return
}