calculating how loud a speaker is