Versions in this module Expand all Collapse all v0 v0.0.1 Nov 23, 2019 Changes in this version + const ModeAudio + const ModeLowdelay + const ModeVoIP + type Mode int + type Params struct + Channels int + Complexity int + Debug bool + EnableRead bool + EnableWrite bool + LossPercent int + MaxPort uint16 + MinPort uint16 + Mode Mode + OfferSDP string + OverrideIP string + Rate int + SimulateLossPercent int + StunURL string + type Peer struct + func NewPeer(params Params) (*Peer, error) + func (p *Peer) Close() error + func (p *Peer) GetAnswer() string + func (p *Peer) GetOffer() string + func (p *Peer) Read() ([]int16, error) + func (p *Peer) SetAnswer(s string) error + func (p *Peer) State() <-chan State + func (p *Peer) Write(pcm []int16) error + type State string + func (s State) IsConnected() bool + func (s State) String() string