| OLD | NEW |
| 1 /*********************************************************************** | 1 /*********************************************************************** |
| 2 Copyright (c) 2006-2011, Skype Limited. All rights reserved. | 2 Copyright (c) 2006-2011, Skype Limited. All rights reserved. |
| 3 Redistribution and use in source and binary forms, with or without | 3 Redistribution and use in source and binary forms, with or without |
| 4 modification, are permitted provided that the following conditions | 4 modification, are permitted provided that the following conditions |
| 5 are met: | 5 are met: |
| 6 - Redistributions of source code must retain the above copyright notice, | 6 - Redistributions of source code must retain the above copyright notice, |
| 7 this list of conditions and the following disclaimer. | 7 this list of conditions and the following disclaimer. |
| 8 - Redistributions in binary form must reproduce the above copyright | 8 - Redistributions in binary form must reproduce the above copyright |
| 9 notice, this list of conditions and the following disclaimer in the | 9 notice, this list of conditions and the following disclaimer in the |
| 10 documentation and/or other materials provided with the distribution. | 10 documentation and/or other materials provided with the distribution. |
| (...skipping 26 matching lines...) Expand all Loading... |
| 37 opus_int silk_init_decoder( | 37 opus_int silk_init_decoder( |
| 38 silk_decoder_state *psDec /* I/O Decoder
state pointer */ | 38 silk_decoder_state *psDec /* I/O Decoder
state pointer */ |
| 39 ) | 39 ) |
| 40 { | 40 { |
| 41 /* Clear the entire encoder state, except anything copied */ | 41 /* Clear the entire encoder state, except anything copied */ |
| 42 silk_memset( psDec, 0, sizeof( silk_decoder_state ) ); | 42 silk_memset( psDec, 0, sizeof( silk_decoder_state ) ); |
| 43 | 43 |
| 44 /* Used to deactivate LSF interpolation */ | 44 /* Used to deactivate LSF interpolation */ |
| 45 psDec->first_frame_after_reset = 1; | 45 psDec->first_frame_after_reset = 1; |
| 46 psDec->prev_gain_Q16 = 65536; | 46 psDec->prev_gain_Q16 = 65536; |
| 47 psDec->arch = opus_select_arch(); |
| 47 | 48 |
| 48 /* Reset CNG state */ | 49 /* Reset CNG state */ |
| 49 silk_CNG_Reset( psDec ); | 50 silk_CNG_Reset( psDec ); |
| 50 | 51 |
| 51 /* Reset PLC state */ | 52 /* Reset PLC state */ |
| 52 silk_PLC_Reset( psDec ); | 53 silk_PLC_Reset( psDec ); |
| 53 | 54 |
| 54 return(0); | 55 return(0); |
| 55 } | 56 } |
| 56 | 57 |
| OLD | NEW |