Mercurial > libavcodec.hg
comparison nellymoserdec.c @ 6612:80cadb0595fb libavcodec
simplify
author | michael |
---|---|
date | Wed, 16 Apr 2008 15:03:07 +0000 |
parents | 79c5af90afde |
children | 54f88d1cee72 |
comparison
equal
deleted
inserted
replaced
6611:79c5af90afde | 6612:80cadb0595fb |
---|---|
117 int bot, top, top2; | 117 int bot, top, top2; |
118 | 118 |
119 bot = 0; | 119 bot = 0; |
120 top = NELLY_BUF_LEN-1; | 120 top = NELLY_BUF_LEN-1; |
121 | 121 |
122 while (bot < NELLY_BUF_LEN/2) { | 122 while (bot < NELLY_BUF_LEN) { |
123 audio[bot] = ( a_in[bot]*sine_window[bot]+state[bot]*sine_window[top])/s->scale_bias + s->add_bias; | 123 audio[bot] = ( a_in[bot]*sine_window[bot]+state[bot]*sine_window[top])/s->scale_bias + s->add_bias; |
124 audio[top] = ( a_in[top]*sine_window[top]+state[top]*sine_window[bot])/s->scale_bias + s->add_bias; | |
125 | 124 |
126 bot++; | 125 bot++; |
127 top--; | 126 top--; |
128 } | 127 } |
129 memcpy(state, a_in + NELLY_BUF_LEN, sizeof(float)*NELLY_BUF_LEN); | 128 memcpy(state, a_in + NELLY_BUF_LEN, sizeof(float)*NELLY_BUF_LEN); |