def encode_wav

emerging-ezaudio@0.4.0.0 · main.bend:212

import emerging-ezaudio@0.4.0.0/main.bend as EmergingEzaudio
import Base

212# a RIFF WAVE file. none when there are no frames, or the rate or channels are unfit.
213def encode_wav(c: Clip) -> Maybe<&2, List<&2, U32>>:
214  match c:
215    case Clip{+hz, +nch, fmt, +pcm}:
216      wav.bytes(list.empty(pcm), hz, nch, kind.of(fmt), pcm)

Uses (7)

Used by (0)

No other definition uses this definition.