opus

package
v1.9.13 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 14, 2025 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func JoinFrames added in v1.9.13

func JoinFrames(b1, b2 []byte) []byte

func RepackToHAP

func RepackToHAP(rtpTime byte, handler core.HandlerFunc) core.HandlerFunc

RepackToHAP - convert standart RTP packet with OPUS to HAP packet We expect that: - incoming packet will be 20ms duration and only one frame per packet - outgouing packet will be 20ms or 60ms duration - incoming sample rate will be any (but not very big if we needs 60ms packets for output) - outgouing sample rate will be 16000 https://github.com/AlexxIT/go2rtc/issues/667

Types

type Header struct {
	Mode       string
	SampleRate uint16
	FrameSize  time.Duration
	Channels   byte
	Frames     byte
}

func UnmarshalHeader added in v1.9.13

func UnmarshalHeader(b []byte) *Header

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL