isDrained

expect var isDrained: Boolean

True after the decoder reports EOF, until flush.

actual var isDrained: Boolean

True after the decoder reports EOF, until flush.

actual var isDrained: Boolean

True once this decoder has emitted its last frame and will emit no more without a flush.

receive returns null for two different reasons and a player must tell them apart: the decoder needs more input, or the stream is over. Without this the caller can only guess, and the guess that ends playback on the first empty poll cuts the last frames off every file. Set when receive sees end of stream, which happens after send(null) has been drained. Cleared by flush, because a flushed decoder accepts input again.

actual var isDrained: Boolean

True after the decoder reports EOF, until flush.

actual var isDrained: Boolean

True after the decoder reports EOF, until flush.