()
| 36 | ) |
| 37 | |
| 38 | func (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. |
| 51 | type Mux struct { |
no outgoing calls
no test coverage detected