pub(crate) fn resolve_cast_latency( settings: &BTreeMap<String, Value>, ) -> Result<CastLatency, EngineError>