1818
1919/******************************************************************************
2020 *
21- * contains code for encoder flow and initalization of encoder
21+ * contains code for encoder flow and initialization of encoder
2222 *
2323 ******************************************************************************/
2424
@@ -62,7 +62,7 @@ void SBC_Encoder(SBC_ENC_PARAMS *pstrEncParams)
6262 pstrEncParams -> ps16NextPcmBuffer = pstrEncParams -> as16PcmBuffer ;
6363#endif
6464 do {
65- /* SBC ananlysis filter*/
65+ /* SBC analysis filter*/
6666 if (s32NumOfSubBands == 4 ) {
6767 SbcAnalysisFilter4 (pstrEncParams );
6868 } else {
@@ -73,7 +73,7 @@ void SBC_Encoder(SBC_ENC_PARAMS *pstrEncParams)
7373 ps16ScfL = pstrEncParams -> as16ScaleFactor ;
7474 s32Ch = pstrEncParams -> s16NumOfChannels * s32NumOfSubBands ;
7575
76- pstrEncParams -> ps16NextPcmBuffer += s32Ch * s32NumOfBlocks ; /* in case of multible sbc frame to encode update the pcm pointer */
76+ pstrEncParams -> ps16NextPcmBuffer += s32Ch * s32NumOfBlocks ; /* in case of multiple sbc frame to encode update the pcm pointer */
7777
7878 for (s32Sb = 0 ; s32Sb < s32Ch ; s32Sb ++ ) {
7979 SbBuffer = pstrEncParams -> s32SbBuffer + s32Sb ;
@@ -101,7 +101,7 @@ void SBC_Encoder(SBC_ENC_PARAMS *pstrEncParams)
101101 /* In case of JS processing,check whether to use JS */
102102#if (SBC_JOINT_STE_INCLUDED == TRUE )
103103 if (pstrEncParams -> s16ChannelMode == SBC_JOINT_STEREO ) {
104- /* Calculate sum and differance scale factors for making JS decision */
104+ /* Calculate sum and difference scale factors for making JS decision */
105105 ps16ScfL = pstrEncParams -> as16ScaleFactor ;
106106 /* calculate the scale factor of Joint stereo max sum and diff */
107107 for (s32Sb = 0 ; s32Sb < s32NumOfSubBands - 1 ; s32Sb ++ ) {
@@ -191,7 +191,7 @@ void SBC_Encoder(SBC_ENC_PARAMS *pstrEncParams)
191191}
192192
193193/****************************************************************************
194- * InitSbcAnalysisFilt - Initalizes the input data to 0
194+ * InitSbcAnalysisFilt - Initializes the input data to 0
195195*
196196* RETURNS : N/A
197197*/
@@ -306,7 +306,7 @@ void SBC_Encoder_Init(SBC_ENC_PARAMS *pstrEncParams)
306306 /* allocation method: loudness */
307307 pstrEncParams -> s16AllocationMethod = SBC_LOUDNESS ;
308308
309- /* set the header paramers , unused for mSBC */
309+ /* set the header parameters , unused for mSBC */
310310 pstrEncParams -> FrameHeader = 0 ;
311311 }
312312
0 commit comments