opus

package
v0.0.0-...-37f1e7d Latest Latest
Warning

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

Go to latest
Published: Sep 1, 2023 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AudioDepacketizer

type AudioDepacketizer struct {
	// contains filtered or unexported fields
}

func NewAudioDepacketizer

func NewAudioDepacketizer(decryptor *crypto.AesGcmCrypto) *AudioDepacketizer

func (*AudioDepacketizer) IsPartitionHead

func (*AudioDepacketizer) IsPartitionHead(payload []byte) bool

IsPartitionHead checks if this is the head of a packetized nalu stream.

func (*AudioDepacketizer) IsPartitionTail

func (*AudioDepacketizer) IsPartitionTail(marker bool, payload []byte) bool

Checks if the packet is at the end of a partition. This should return false if the result could not be determined.

func (*AudioDepacketizer) Unmarshal

func (depacketizer *AudioDepacketizer) Unmarshal(packet []byte) ([]byte, error)

type OggRecorder

type OggRecorder struct {
	// contains filtered or unexported fields
}

func CreateNewOggRecorder

func CreateNewOggRecorder() (*OggRecorder, error)

func (*OggRecorder) Close

func (recorder *OggRecorder) Close() error

func (*OggRecorder) Record

func (recorder *OggRecorder) Record(sample *media.Sample) error

type PCMRecorder

type PCMRecorder struct {
	// contains filtered or unexported fields
}

func CreateNewPCMRecorder

func CreateNewPCMRecorder() (*PCMRecorder, error)

func (*PCMRecorder) Close

func (recorder *PCMRecorder) Close() error

func (*PCMRecorder) Record

func (recorder *PCMRecorder) Record(sample *media.Sample) error

Jump to

Keyboard shortcuts

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