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:
Anthony Minessale 2005-12-29 00:27:18 +00:00
parent 82d141df73
commit 50a65440ac
1 changed files with 2 additions and 2 deletions

View File

@ -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;