drive

expect suspend fun drive(input: Flow<Frame>)

Drain input into this encoder + the parent muxer. Returns when the flow completes.

A frame in another sample format, with another channel count or with another channel layout is converted with a Resampler first. So is a frame at another sample rate when frameSize is 0; a fixed-size codec refuses it, because a resampled frame no longer has the size the codec takes.

actual suspend fun drive(input: Flow)
actual suspend fun drive(input: Flow<Frame>)

Drain input into this encoder + the parent muxer. Returns when the flow completes.

A frame in another sample format, with another channel count or with another channel layout is converted with a Resampler first. So is a frame at another sample rate when frameSize is 0; a fixed-size codec refuses it, because a resampled frame no longer has the size the codec takes.

actual suspend fun drive(input: Flow<Frame>)

Drain input into this encoder + the parent muxer. Returns when the flow completes.

A frame in another sample format, with another channel count or with another channel layout is converted with a Resampler first. So is a frame at another sample rate when frameSize is 0; a fixed-size codec refuses it, because a resampled frame no longer has the size the codec takes.