but it should compile doh
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@233 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
parent
82d141df73
commit
50a65440ac
|
@ -111,12 +111,12 @@ static switch_status switch_raw_encode(switch_codec *codec,
|
|||
printf("Activate Resample %d->%d\n", codec->implementation->samples_per_second, other_codec->implementation->samples_per_second);
|
||||
context->enc_from = codec->implementation->samples_per_second;
|
||||
context->enc_to = other_codec->implementation->samples_per_second;
|
||||
context->enc_factor = ((double)other_codec->implementation->samples_per_second / (double)codec->implementation->samples_per_second);
|
||||
context->enc_factor = ((double) context->enc_from / (double)context->enc_to);
|
||||
context->enc_resampler = resample_open(1, context->enc_factor, context->enc_factor);
|
||||
}
|
||||
|
||||
if (context->enc_from) {
|
||||
|
||||
|
||||
}
|
||||
|
||||
return SWITCH_STATUS_SUCCESS;
|
||||
|
|
Loading…
Reference in New Issue