Versions in this module Expand all Collapse all v0 v0.0.18 Jul 6, 2022 Changes in this version + const ADTSHeaderLength + const AOT_AAC_LC + const AOT_AAC_LTP + const AOT_AAC_MAIN + const AOT_AAC_SCALABLE + const AOT_AAC_SSR + const AOT_ALS + const AOT_CELP + const AOT_DST + const AOT_ER_AAC_ELD + const AOT_ER_AAC_LC + const AOT_ER_AAC_LD + const AOT_ER_AAC_LTP + const AOT_ER_AAC_SCALABLE + const AOT_ER_BSAC + const AOT_ER_CELP + const AOT_ER_HILN + const AOT_ER_HVXC + const AOT_ER_PARAM + const AOT_ER_TWINVQ + const AOT_ESCAPE + const AOT_HVXC + const AOT_L1 + const AOT_L2 + const AOT_L3 + const AOT_LD_SURROUND + const AOT_MAINSYNTH + const AOT_MIDI + const AOT_PS + const AOT_SAFX + const AOT_SAOC + const AOT_SBR + const AOT_SLS + const AOT_SLS_NON_CORE + const AOT_SMR_MAIN + const AOT_SMR_SIMPLE + const AOT_SSC + const AOT_SURROUND + const AOT_TTSI + const AOT_TWINVQ + const AOT_USAC + const AOT_USAC_NOSBR + const AOT_WAVESYNTH + func FillADTSHeader(header []byte, config MPEG4AudioConfig, samples int, payloadLength int) + func WriteMPEG4AudioConfig(w io.Writer, config MPEG4AudioConfig) (err error) + type CodecData struct + Config MPEG4AudioConfig + ConfigBytes []byte + func NewCodecDataFromMPEG4AudioConfig(config MPEG4AudioConfig) (self CodecData, err error) + func NewCodecDataFromMPEG4AudioConfigBytes(config []byte) (self CodecData, err error) + func (self CodecData) ChannelLayout() av.ChannelLayout + func (self CodecData) MPEG4AudioConfigBytes() []byte + func (self CodecData) PacketDuration(data []byte) (dur time.Duration, err error) + func (self CodecData) SampleFormat() av.SampleFormat + func (self CodecData) SampleRate() int + func (self CodecData) Tag() string + func (self CodecData) Type() av.CodecType + type MPEG4AudioConfig struct + ChannelConfig uint + ChannelLayout av.ChannelLayout + ObjectType uint + SampleRate int + SampleRateIndex uint + func ParseADTSHeader(frame []byte) (config MPEG4AudioConfig, hdrlen int, framelen int, samples int, err error) + func ParseMPEG4AudioConfigBytes(data []byte) (config MPEG4AudioConfig, err error) + func (self *MPEG4AudioConfig) Complete() + func (self MPEG4AudioConfig) IsValid() bool