Lines Matching defs:magic_samples
139 spx_uint32_t *magic_samples;
738 /*if (st->magic_samples[i])*/
743 olen = old_length + 2*st->magic_samples[i];
744 for (j=old_length-1+st->magic_samples[i];j--;)
745 st->mem[i*st->mem_alloc_size+j+st->magic_samples[i]] = st->mem[i*old_alloc_size+j];
746 for (j=0;j<st->magic_samples[i];j++)
748 st->magic_samples[i] = 0;
763 st->magic_samples[i] = (olen - st->filt_len)/2;
764 for (j=0;j<st->filt_len-1+st->magic_samples[i];j++)
765 st->mem[i*st->mem_alloc_size+j] = st->mem[i*st->mem_alloc_size+j+st->magic_samples[i]];
776 spx_uint32_t old_magic = st->magic_samples[i];
777 st->magic_samples[i] = (old_length - st->filt_len)/2;
780 for (j=0;j<st->filt_len-1+st->magic_samples[i]+old_magic;j++)
781 st->mem[i*st->mem_alloc_size+j] = st->mem[i*st->mem_alloc_size+j+st->magic_samples[i]];
782 st->magic_samples[i] += old_magic;
842 if (!(st->magic_samples = (spx_uint32_t*)speex_alloc(nb_channels*sizeof(spx_uint32_t))))
875 speex_free(st->magic_samples);
907 spx_uint32_t tmp_in_len = st->magic_samples[channel_index];
913 st->magic_samples[channel_index] -= tmp_in_len;
916 if (st->magic_samples[channel_index])
919 for (i=0;i<st->magic_samples[channel_index];i++)
940 if (st->magic_samples[channel_index])
942 if (! st->magic_samples[channel_index]) {
996 if (st->magic_samples[channel_index]) {
1001 if (! st->magic_samples[channel_index]) {
1216 st->magic_samples[i] = 0;