Mercurial > pidgin
diff src/mediastreamer/msilbcenc.c @ 12029:1c771536a032
[gaim-migrate @ 14322]
This _compiles_ for me now. Theres still a bunch of "dereferencing type-punned pointer will break strict-aliasing rules" warning and some redefinition warnings from the various config.h's. The deferencing warnings look like a BE<->LE hack but I left them untouched for the time being.
committer: Tailor Script <tailor@pidgin.im>
author | Gary Kramlich <grim@reaperworld.com> |
---|---|
date | Wed, 09 Nov 2005 09:57:33 +0000 |
parents | e67993da8a22 |
children |
line wrap: on
line diff
--- a/src/mediastreamer/msilbcenc.c Wed Nov 09 09:02:43 2005 +0000 +++ b/src/mediastreamer/msilbcenc.c Wed Nov 09 09:57:33 2005 +0000 @@ -53,7 +53,6 @@ ilbc_write_16bit_samples(gint16 int16samples[], float speech[], int n) { int i; - float real_sample; /* Convert floating point samples in range [-1,+1] to 16 bit integers. */ @@ -139,6 +138,11 @@ else g_warning("Unrecognized fmtp parameter for ilbc encoder!"); #endif break; + case MS_FILTER_PROPERTY_FREQ: + case MS_FILTER_PROPERTY_BITRATE: + case MS_FILTER_PROPERTY_CHANNELS: + default: + break; } return 0; } @@ -151,13 +155,17 @@ if (obj->ms_per_frame==20) strncpy(value,"ptime=20",MS_FILTER_PROPERTY_STRING_MAX_SIZE); if (obj->ms_per_frame==30) strncpy(value,"ptime=30",MS_FILTER_PROPERTY_STRING_MAX_SIZE); break; + case MS_FILTER_PROPERTY_FREQ: + case MS_FILTER_PROPERTY_BITRATE: + case MS_FILTER_PROPERTY_CHANNELS: + default: + break; } return 0; } void ms_ilbc_encoder_setup(MSILBCEncoder *r) { - MSFilterClass *klass = NULL; switch (r->ms_per_frame) { case 20: r->samples_per_frame = BLOCKL_20MS;