Versions in this module Expand all Collapse all v1 v1.1.0 Jan 19, 2021 v1.0.0 Jan 9, 2021 Changes in this version + 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_NULL + 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 + const ChannelFive + const ChannelFivePlusOne + const ChannelFour + const ChannelMono + const ChannelReserved + const ChannelSevenPlusOne + const ChannelSpecific + const ChannelStereo + const ChannelThree + const ParameterSetConfig + const ProfileELD + const ProfileHE + const ProfileHE2 + const ProfileLD + const ProfileLTP + const ProfileLow + const ProfileMain + const ProfileSSR + const SampleRate11025 + const SampleRate12000 + const SampleRate16000 + const SampleRate22050 + const SampleRate24000 + const SampleRate32000 + const SampleRate44100 + const SampleRate48000 + const SampleRate64000 + const SampleRate7350 + const SampleRate8000 + const SampleRate88200 + const SampleRate96000 + const SamplesPerFrame + var SampleRates = [16]int + func Encode2BytesASC(objType, samplingIdx, channelConfig byte) []byte + func MetadataIsReady(am *codec.AudioMeta) bool + func SampleRate(index int) int + func SamplingIndex(rate int) int + type ADTSHeader [7]byte + func NewADTSHeader(profile, sampleRateIdx, channelConfig byte, payloadSize int) ADTSHeader + func (h ADTSHeader) ChannelConfig() uint8 + func (h ADTSHeader) Channels() uint8 + func (h ADTSHeader) FrameLength() int + func (h ADTSHeader) PayloadSize() int + func (h ADTSHeader) Profile() uint8 + func (h ADTSHeader) SampleRate() int + func (h ADTSHeader) SamplingIndex() uint8 + func (h ADTSHeader) ToAsc() []byte + type AudioSpecificConfig struct + ChannelConfig uint8 + Channels uint8 + ExtChannelConfig uint8 + ExtObjectType uint8 + ExtSampleRate int + ExtSamplingIndex uint8 + FrameLengthShort int + ObjectType uint8 + Ps int + SampleRate int + SamplingIndex uint8 + Sbr int + func (asc *AudioSpecificConfig) Decode(config []byte) (err error) + func (asc *AudioSpecificConfig) DecodeString(config string) error + func (asc *AudioSpecificConfig) ToAdtsHeader(payloadSize int) ADTSHeader + type RawSPS = AudioSpecificConfig