pub fn pcm_source_to_stream(
source: &mut impl PcmSource,
metadata: StreamMetadata,
) -> Result<StreamValue>Expand description
Drains a PcmSource into a pull-mode sim-lib-stream-core StreamValue.
Each source buffer becomes one PCM stream packet carried on metadata.
Returns an error when metadata is not PCM media or is marked sink-only, or
when a buffer fails to encode.