AudioEncoder.setDrainable

Configures encoder drain handling. If drainable, subclass might be handed a NULL buffer to have it return any leftover encoded data. Otherwise, it is not considered so capable and will only ever be passed real data.

MT safe.

class AudioEncoder
void
setDrainable
(
bool enabled
)

Parameters

enabled bool

new state