Calculates audio levels as defined/used by RFC 6465.
Fixes warnings.