MCPcopy
hub / github.com/ebitengine/oto / New

Function New

internal/mux/mux.go:61–70  ·  view source on GitHub ↗

New creates a new Mux.

(sampleRate int, channelCount int, format Format)

Source from the content-addressed store, hash-verified

59
60// New creates a new Mux.
61func New(sampleRate int, channelCount int, format Format) *Mux {
62 m := &Mux{
63 sampleRate: sampleRate,
64 channelCount: channelCount,
65 format: format,
66 cond: sync.NewCond(&sync.Mutex{}),
67 }
68 go m.loop()
69 return m
70}
71
72func (m *Mux) shouldWait() bool {
73 for p := range m.players {

Callers 6

newContextFunction · 0.92
newContextFunction · 0.92
newContextFunction · 0.92
newContextFunction · 0.92
newContextFunction · 0.92
newContextFunction · 0.92

Calls 1

loopMethod · 0.95

Tested by

no test coverage detected