Turbulent heating in a stratified medium