shithub: opus-tools

Download patch

ref: 768a9c773c9847886b802f6fb3fa0b1df74ed119
parent: 3ed20c6c00c2b46ca930c3de3993026b281f1fab
author: Gregory Maxwell <greg@xiph.org>
date: Fri Jul 20 20:09:45 EDT 2012

Some inconsequential string changes.

--- a/src/info_opus.c
+++ b/src/info_opus.c
@@ -279,7 +279,7 @@
         if(inf->max_page_duration>=240000)
            oi_warn(_("\tWARNING: stream %d has high muxing delay\n"),stream->num);
         oi_info(_("\tPre-skip: %d\n"),inf->oh.preskip);
-        oi_info(_("\tPlayback gain: %gdB\n"),inf->oh.gain/256.);
+        oi_info(_("\tPlayback gain: %g dB\n"),inf->oh.gain/256.);
         oi_info(_("\tChannels: %d\n"),inf->oh.channels);
         if(inf->oh.input_sample_rate)oi_info(_("\tOriginal sample rate: %dHz\n"),inf->oh.input_sample_rate);
         if(inf->oh.nb_streams>1)oi_info(_("\tStreams: %d, Coupled: %d\n"),inf->oh.nb_streams,inf->oh.nb_coupled);
--- a/src/opusdec.c
+++ b/src/opusdec.c
@@ -144,7 +144,7 @@
 /* This implements a 16 bit quantization with full triangular dither
    and IIR noise shaping. The noise shaping filters were designed by
    Sebastian Gesemann based on the LAME ATH curves with flattening
-   to limit their peak gain to 20dB.
+   to limit their peak gain to 20 dB.
    (Everyone elses' noise shaping filters are mildly crazy)
    The 48kHz version of this filter is just a warped version of the
    44.1kHz filter and probably could be improved by shifting the
@@ -152,7 +152,7 @@
    room and being more conservative against bat-ears is probably
    more important than more noise suppression.
    This process can increase the peak level of the signal (in theory
-   by the peak error of 1.5 +20dB though this much is unobservable rare)
+   by the peak error of 1.5 +20 dB though this much is unobservable rare)
    so to avoid clipping the signal is attenuated by a couple thousandths
    of a dB. Initially the approach taken here was to only attenuate by
    the 99.9th percentile, making clipping rare but not impossible (like
@@ -198,7 +198,7 @@
       s = s - err;
       r=(float)fast_rand()*(1/(float)UINT_MAX) - (float)fast_rand()*(1/(float)UINT_MAX);
       if (mute>16)r=0;
-      /*Clamp in float out of paranoia that the input will be >96dBFS and wrap if the
+      /*Clamp in float out of paranoia that the input will be >96 dBFS and wrap if the
         integer is clamped.*/
       _o[pos+c] = si = float2int(fmaxf(-32768,fminf(s + r,32767)));
       /*Including clipping in the noise shaping is generally disastrous: