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

Method ByteLength

internal/mux/mux.go:38–48  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

36)
37
38func (f Format) ByteLength() int {
39 switch f {
40 case FormatFloat32LE:
41 return 4
42 case FormatUnsignedInt8:
43 return 1
44 case FormatSignedInt16LE:
45 return 2
46 }
47 panic(fmt.Sprintf("mux: unexpected format: %d", f))
48}
49
50// Mux is a low-level multiplexer of audio players.
51type Mux struct {

Callers 2

readBufferAndAddMethod · 0.80
defaultBufferSizeMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected