Documentation
¶
Overview ¶
Package amrwb implements AMR-WB audio codec encoding and decoding.
Index ¶
Constants ¶
View Source
const ( Magic = "#!AMR-WB\n" // File magic for AMR-WB, as described in RFC 4867 #5.1. PCMFrameSize = 320 // PCM frame size at 16kHz FrameSizeMax = 61 // max encoded AMR-WB block size )
View Source
const ( // Storage format for AMR-WB. See RFC 4867 #5 Storage = Format(iota) // RTPBandwidthEfficient is a bandwidth-efficient AMR-WB format for RTP payloads. RTPBandwidthEfficient )
View Source
const ( Mode6Kb = amrenc.Mode6Kb // 6.60kbps Mode8Kb = amrenc.Mode8Kb // 8.85kbps Mode12Kb = amrenc.Mode12Kb // 12.65kbps Mode14Kb = amrenc.Mode14Kb // 14.25kbps Mode16Kb = amrenc.Mode16Kb // 15.85bps Mode18Kb = amrenc.Mode18Kb // 18.25bps Mode20Kb = amrenc.Mode20Kb // 19.85kbps Mode23Kb = amrenc.Mode23Kb // 23.05kbps Mode24Kb = amrenc.Mode24Kb // 23.85kbps Fastest = Mode6Kb // fastest encoding Best = Mode24Kb // best encoding )
Variables ¶
View Source
var (
ErrInvalidBlock = errors.New("amrwb: invalid block")
)
Functions ¶
Types ¶
type Decoder ¶
Decoder for AMR-WB audio codec.
func NewDecoder ¶
NewDecoder creates a new Decoder. Caller must call Close to avoid resource leak.
type Encoder ¶
Encoder for AMR-WB audio codec.
func NewEncoder ¶
NewEncoder creates a new Encoder. Caller must call Close to avoid resource leak.
type Format ¶
type Format int
Format represent the variation of the encoding/decoding format for AMR-WB.
type PCMFrame ¶
type PCMFrame = [PCMFrameSize]int16
Click to show internal directories.
Click to hide internal directories.