Spray foams (both open-cell and closed-cell) create an air barrier. It can be used on walls, floors, and ceiling cavities. It won’t compress, sag, or settle over time, which makes the maintenance process simple. Rockwool, on the other hand, does not create any type of air barrier.