Commit 7b0fc556 authored by aymeric's avatar aymeric
Browse files

oups... use better packet size to avoid time difference when resampling.

git-svn-id: svn+ssh:// 3f6dc0c8-ddfe-455d-9043-3cd528dc4637
parent b9f62a4d
...@@ -76,9 +76,9 @@ static void resample_process_ms2(MSFilter *obj){ ...@@ -76,9 +76,9 @@ static void resample_process_ms2(MSFilter *obj){
} }
if (dt->input_rate<dt->output_rate) if (dt->input_rate<dt->output_rate)
size_of_input=320; size_of_input=320*dt->input_rate/8000;
else else
size_of_input=320; size_of_input=320*dt->input_rate/8000;
size_of_output = (size_of_input * dt->output_rate)/dt->input_rate; size_of_output = (size_of_input * dt->output_rate)/dt->input_rate;
while((m=ms_queue_get(obj->inputs[0]))!=NULL){ while((m=ms_queue_get(obj->inputs[0]))!=NULL){
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment