Help us shape the future of Go! Take the 2026 Go Developer Survey

audiodecoder

package
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: Dec 10, 2019 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AudioWorker

type AudioWorker struct {
	sync.Mutex
	// contains filtered or unexported fields
}

AudioWorker stream worker

func NewAudioWorker

func NewAudioWorker(workers *worker.Workers, id int, label string) *AudioWorker

NewAudioWorker create a new AudioWorker

func (*AudioWorker) Command

func (w *AudioWorker) Command(c int)

Command sent to this worker

func (*AudioWorker) Data

func (w *AudioWorker) Data(d []byte)

Data sent to this worker

func (*AudioWorker) ID added in v0.2.0

func (w *AudioWorker) ID() int

ID return label of worker

func (*AudioWorker) Label added in v0.2.0

func (w *AudioWorker) Label() string

Label return label of worker

func (*AudioWorker) Run

func (w *AudioWorker) Run(wg *sync.WaitGroup, term *chan int)

Run is main function of this worker

func (*AudioWorker) Subscriptions added in v0.2.0

func (w *AudioWorker) Subscriptions() []*worker.Subscription

Subscriptions return a copy of current scubscriptions

func (*AudioWorker) Terminate

func (w *AudioWorker) Terminate()

Terminate the worker

Jump to

Keyboard shortcuts

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