Lines 960-972
EXPORT int speex_resampler_process_interleaved_float(SpeexResamplerState *st, co
Link Here
|
960 |
{ |
960 |
{ |
961 |
spx_uint32_t i; |
961 |
spx_uint32_t i; |
962 |
int istride_save, ostride_save; |
962 |
int istride_save, ostride_save; |
963 |
spx_uint32_t bak_len = *out_len; |
963 |
spx_uint32_t bak_out_len = *out_len; |
|
|
964 |
spx_uint32_t bak_in_len = *in_len; |
964 |
istride_save = st->in_stride; |
965 |
istride_save = st->in_stride; |
965 |
ostride_save = st->out_stride; |
966 |
ostride_save = st->out_stride; |
966 |
st->in_stride = st->out_stride = st->nb_channels; |
967 |
st->in_stride = st->out_stride = st->nb_channels; |
967 |
for (i=0;i<st->nb_channels;i++) |
968 |
for (i=0;i<st->nb_channels;i++) |
968 |
{ |
969 |
{ |
969 |
*out_len = bak_len; |
970 |
*out_len = bak_out_len; |
|
|
971 |
*in_len = bak_in_len; |
970 |
if (in != NULL) |
972 |
if (in != NULL) |
971 |
speex_resampler_process_float(st, i, in+i, in_len, out+i, out_len); |
973 |
speex_resampler_process_float(st, i, in+i, in_len, out+i, out_len); |
972 |
else |
974 |
else |
Lines 981-993
EXPORT int speex_resampler_process_interleaved_int(SpeexResamplerState *st, cons
Link Here
|
981 |
{ |
983 |
{ |
982 |
spx_uint32_t i; |
984 |
spx_uint32_t i; |
983 |
int istride_save, ostride_save; |
985 |
int istride_save, ostride_save; |
984 |
spx_uint32_t bak_len = *out_len; |
986 |
spx_uint32_t bak_out_len = *out_len; |
|
|
987 |
spx_uint32_t bak_in_len = *in_len; |
985 |
istride_save = st->in_stride; |
988 |
istride_save = st->in_stride; |
986 |
ostride_save = st->out_stride; |
989 |
ostride_save = st->out_stride; |
987 |
st->in_stride = st->out_stride = st->nb_channels; |
990 |
st->in_stride = st->out_stride = st->nb_channels; |
988 |
for (i=0;i<st->nb_channels;i++) |
991 |
for (i=0;i<st->nb_channels;i++) |
989 |
{ |
992 |
{ |
990 |
*out_len = bak_len; |
993 |
*out_len = bak_out_len; |
|
|
994 |
*in_len = bak_in_len; |
991 |
if (in != NULL) |
995 |
if (in != NULL) |
992 |
speex_resampler_process_int(st, i, in+i, in_len, out+i, out_len); |
996 |
speex_resampler_process_int(st, i, in+i, in_len, out+i, out_len); |
993 |
else |
997 |
else |