pub fn read_wav_stream(
cx: &mut Cx,
path: impl AsRef<Path>,
frames_per_packet: usize,
metadata: StreamMetadata,
) -> Result<WavStream>Expand description
Reads a canonical PCM16 WAV file from path and opens it as a PCM stream.
The read is gated by the filesystem read capability and recorded as a
KERNEL 6 filesystem effect. Packets carry up to frames_per_packet frames.