writes volume level to prefs file