Patent ID: 9491538
Filing Date: 2016-11-08
CPC Classification: G10L,H03G,H04R,H04S

Claim Text:
1. A non-transitory and tangible computer-readable medium having instructions operable to cause a digital media processing device to perform operations for a media stream, comprising: calculating, by the digital media processing device, a loudness estimate for a current block of digital audio samples in the media stream, the loudness estimate calculated as a sum of magnitudes of the digital audio samples contained in the current block; calculating, by the digital media processing device, a reference gain value for the current block of digital audio samples, the reference gain value being equal to a constant reference loudness value divided by the loudness estimate; calculating, by the digital media processing device, a maximum gain value for the current block of digital audio samples, based on a maximum absolute sample value in the current block of digital audio samples; choosing, by the digital media processing device, an estimated gain value for the current block of digital audio samples, the estimated gain value being equal to either the reference gain value or the maximum gain value, whichever is less; selecting, by the digital media processing device, either a first current gain value or a second current gain value for the current block of digital audio samples, whichever is less, the first current gain value comprising a weighted sum of the estimated gain value and a previous gain value applied to a previous block of digital audio samples in the media stream, and the second current gain value comprising the maximum gain value, to obtain a selected current gain value; modifying, by the digital media processing device, the current block of digital audio samples by applying the selected current gain value to the digital audio samples in the current block of digital audio samples, resulting in gain-adjusted digital audio samples; and transmitting, by the digital media processing device, the gain-adjusted digital audio samples to a remotely-located media player to generate sound based on the gain-adjusted digital audio samples.