A framework for adaptive real-time loudness control