<h1>Project "FreeSWITCH Source" received a push.</h1>

<h2>branch: master updated</h2>
<pre>
       via: 998a04d2cfa361a4d600175809d5fef02374c720 (commit)
      from: e7d68a79dc7838d74e7b8985494dcde532910d32 (commit)


</pre>= COMMIT LOG ===========================================================
<div class="highlight"><pre>committer: Anthony Minessale
comments: 
add 10 20 and 40ms

<span style="color: #000080; font-weight: bold">diff --git a/src/mod/codecs/mod_opus/mod_opus.c b/src/mod/codecs/mod_opus/mod_opus.c</span>
<span style="color: #000080; font-weight: bold">index ddb5a7a..0234ed8 100644</span>
<span style="color: #A00000">--- a/src/mod/codecs/mod_opus/mod_opus.c</span>
<span style="color: #00A000">+++ b/src/mod/codecs/mod_opus/mod_opus.c</span>
<span style="color: #800080; font-weight: bold">@@ -147,52 +147,43 @@ static switch_status_t switch_opus_decode(switch_codec_t *codec,</span>
 SWITCH_MODULE_LOAD_FUNCTION(mod_opus_load)
 {
         switch_codec_interface_t *codec_interface;
<span style="color: #00A000">+        int samples = 80;</span>
<span style="color: #00A000">+        int bytes = 960;</span>
<span style="color: #00A000">+        int mss = 10000;</span>
<span style="color: #00A000">+        int x = 0;</span>
<span style="color: #00A000">+        int rate = 48000;</span>
<span style="color: #00A000">+        int bits = 32000;</span>
 
         /* connect my internal structure to the blank pointer passed to me */
         *module_interface = switch_loadable_module_create_module_interface(pool, modname);
 
         SWITCH_ADD_CODEC(codec_interface, &quot;OPUS (BETA 0.9.0)&quot;);
 
<span style="color: #A00000">-        switch_core_codec_add_implementation(pool, codec_interface, SWITCH_CODEC_TYPE_AUDIO,        /* enumeration defining the type of the codec */</span>
<span style="color: #A00000">-                                                                                 115,        /* the IANA code number */</span>
<span style="color: #A00000">-                                                                                 &quot;Opus-0.9.0&quot;,/* the IANA code name */</span>
<span style="color: #A00000">-                                                                                 NULL,        /* default fmtp to send (can be overridden by the init function) */</span>
<span style="color: #A00000">-                                                                                 48000,        /* samples transferred per second */</span>
<span style="color: #A00000">-                                                                                 48000,        /* actual samples transferred per second */</span>
<span style="color: #A00000">-                                                                                 32000,        /* bits transferred per second */</span>
<span style="color: #A00000">-                                                                                 10000,        /* number of microseconds per frame */</span>
<span style="color: #A00000">-                                                                                 80,        /* number of samples per frame */</span>
<span style="color: #A00000">-                                                                                 960,        /* number of bytes per frame decompressed */</span>
<span style="color: #A00000">-                                                                                 0,        /* number of bytes per frame compressed */</span>
<span style="color: #A00000">-                                                                                 1,        /* number of channels represented */</span>
<span style="color: #A00000">-                                                                                 1,        /* number of frames per network packet */</span>
<span style="color: #A00000">-                                                                                 switch_opus_init,        /* function to initialize a codec handle using this implementation */</span>
<span style="color: #A00000">-                                                                                 switch_opus_encode,        /* function to encode raw data into encoded data */</span>
<span style="color: #A00000">-                                                                                 switch_opus_decode,        /* function to decode encoded data into raw data */</span>
<span style="color: #A00000">-                                                                                 switch_opus_destroy);        /* deinitalize a codec handle using this implementation */</span>
<span style="color: #A00000">-</span>
<span style="color: #A00000">-</span>
<span style="color: #A00000">-        switch_core_codec_add_implementation(pool, codec_interface, SWITCH_CODEC_TYPE_AUDIO,        /* enumeration defining the type of the codec */</span>
<span style="color: #A00000">-                                                                                 115,        /* the IANA code number */</span>
<span style="color: #A00000">-                                                                                 &quot;Opus-0.9.0&quot;,        /* the IANA code name */</span>
<span style="color: #A00000">-                                                                                 NULL,        /* default fmtp to send (can be overridden by the init function) */</span>
<span style="color: #A00000">-                                                                                 48000,        /* samples transferred per second */</span>
<span style="color: #A00000">-                                                                                 48000,        /* actual samples transferred per second */</span>
<span style="color: #A00000">-                                                                                 32000,        /* bits transferred per second */</span>
<span style="color: #A00000">-                                                                                 20000,        /* number of microseconds per frame */</span>
<span style="color: #A00000">-                                                                                 160,        /* number of samples per frame */</span>
<span style="color: #A00000">-                                                                                 1920,        /* number of bytes per frame decompressed */</span>
<span style="color: #A00000">-                                                                                 0,        /* number of bytes per frame compressed */</span>
<span style="color: #A00000">-                                                                                 1,        /* number of channels represented */</span>
<span style="color: #A00000">-                                                                                 1,        /* number of frames per network packet */</span>
<span style="color: #A00000">-                                                                                 switch_opus_init,        /* function to initialize a codec handle using this implementation */</span>
<span style="color: #A00000">-                                                                                 switch_opus_encode,        /* function to encode raw data into encoded data */</span>
<span style="color: #A00000">-                                                                                 switch_opus_decode,        /* function to decode encoded data into raw data */</span>
<span style="color: #A00000">-                                                                                 switch_opus_destroy);        /* deinitalize a codec handle using this implementation */</span>
<span style="color: #A00000">-</span>
<span style="color: #A00000">-</span>
<span style="color: #A00000">-</span>
<span style="color: #00A000">+        for (x = 0; x &lt; 3; x++) {</span>
<span style="color: #00A000">+                switch_core_codec_add_implementation(pool, codec_interface, SWITCH_CODEC_TYPE_AUDIO,        /* enumeration defining the type of the codec */</span>
<span style="color: #00A000">+                                                                                         115,        /* the IANA code number */</span>
<span style="color: #00A000">+                                                                                         &quot;Opus-0.9.0&quot;,/* the IANA code name */</span>
<span style="color: #00A000">+                                                                                         NULL,        /* default fmtp to send (can be overridden by the init function) */</span>
<span style="color: #00A000">+                                                                                         rate,        /* samples transferred per second */</span>
<span style="color: #00A000">+                                                                                         rate,        /* actual samples transferred per second */</span>
<span style="color: #00A000">+                                                                                         bits,        /* bits transferred per second */</span>
<span style="color: #00A000">+                                                                                         mss,        /* number of microseconds per frame */</span>
<span style="color: #00A000">+                                                                                         samples,        /* number of samples per frame */</span>
<span style="color: #00A000">+                                                                                         bytes,        /* number of bytes per frame decompressed */</span>
<span style="color: #00A000">+                                                                                         0,        /* number of bytes per frame compressed */</span>
<span style="color: #00A000">+                                                                                         1,        /* number of channels represented */</span>
<span style="color: #00A000">+                                                                                         1,        /* number of frames per network packet */</span>
<span style="color: #00A000">+                                                                                         switch_opus_init,        /* function to initialize a codec handle using this implementation */</span>
<span style="color: #00A000">+                                                                                         switch_opus_encode,        /* function to encode raw data into encoded data */</span>
<span style="color: #00A000">+                                                                                         switch_opus_decode,        /* function to decode encoded data into raw data */</span>
<span style="color: #00A000">+                                                                                         switch_opus_destroy);        /* deinitalize a codec handle using this implementation */</span>
<span style="color: #00A000">+                </span>
<span style="color: #00A000">+                bytes *= 2;</span>
<span style="color: #00A000">+                samples *= 2;</span>
<span style="color: #00A000">+                mss *= 2;</span>
 
<span style="color: #00A000">+        }</span>
<span style="color: #00A000">+        </span>
         /* indicate that the module should continue to be loaded */
         return SWITCH_STATUS_SUCCESS;
 }
</pre></div>
========================================================================<pre>

Summary of changes:
 src/mod/codecs/mod_opus/mod_opus.c |   69 +++++++++++++++--------------------
 1 files changed, 30 insertions(+), 39 deletions(-)
</pre>
<p>this email was generated because of /git/your-repo.git/hooks/post-receive by the file /git-core/contrib/hooks/post-receive-email<br />
For more info, see <a href="http://blog.chomperstomp.com/?p=630">http://blog.chomperstomp.com/?p=630</a>
-- <br />
FreeSWITCH Source</p>