[Freeswitch-svn] [commit] r9206 - in freeswitch/trunk: libs/win32/libmp3lame libs/win32/libogg libs/win32/libshout src/include src/mod/formats/mod_shout
Freeswitch SVN
mikej at freeswitch.org
Wed Jul 30 01:32:52 EDT 2008
Author: mikej
Date: Wed Jul 30 01:32:51 2008
New Revision: 9206
Modified:
freeswitch/trunk/libs/win32/libmp3lame/libmp3lame_vc7.vcproj
freeswitch/trunk/libs/win32/libogg/libogg.2008.vcproj
freeswitch/trunk/libs/win32/libshout/libshout.vcproj
freeswitch/trunk/src/include/switch_core.h
freeswitch/trunk/src/mod/formats/mod_shout/decode_i386.c
freeswitch/trunk/src/mod/formats/mod_shout/decode_ntom.c
freeswitch/trunk/src/mod/formats/mod_shout/layer3.c
freeswitch/trunk/src/mod/formats/mod_shout/mod_shout.c
freeswitch/trunk/src/mod/formats/mod_shout/mod_shout.vcproj
freeswitch/trunk/src/mod/formats/mod_shout/tabinit.c
Log:
windows build cleanup
Modified: freeswitch/trunk/libs/win32/libmp3lame/libmp3lame_vc7.vcproj
==============================================================================
--- freeswitch/trunk/libs/win32/libmp3lame/libmp3lame_vc7.vcproj (original)
+++ freeswitch/trunk/libs/win32/libmp3lame/libmp3lame_vc7.vcproj Wed Jul 30 01:32:51 2008
@@ -51,7 +51,7 @@
AssemblerListingLocation=".\Release/"
ObjectFile=".\Release/"
ProgramDataBaseFileName=".\Release/"
- WarningLevel="3"
+ WarningLevel="0"
SuppressStartupBanner="true"
CompileAs="0"
/>
@@ -119,9 +119,9 @@
AssemblerListingLocation=".\Debug/"
ObjectFile=".\Debug/"
ProgramDataBaseFileName=".\Debug/"
- WarningLevel="3"
+ WarningLevel="0"
SuppressStartupBanner="true"
- DebugInformationFormat="4"
+ DebugInformationFormat="3"
CompileAs="0"
/>
<Tool
Modified: freeswitch/trunk/libs/win32/libogg/libogg.2008.vcproj
==============================================================================
--- freeswitch/trunk/libs/win32/libogg/libogg.2008.vcproj (original)
+++ freeswitch/trunk/libs/win32/libogg/libogg.2008.vcproj Wed Jul 30 01:32:51 2008
@@ -50,7 +50,7 @@
AssemblerListingLocation=".\Static_Release/"
ObjectFile=".\Static_Release/"
ProgramDataBaseFileName=".\Static_Release/"
- WarningLevel="3"
+ WarningLevel="0"
SuppressStartupBanner="true"
/>
<Tool
@@ -121,9 +121,9 @@
AssemblerListingLocation=".\Static_Debug/"
ObjectFile=".\Static_Debug/"
ProgramDataBaseFileName=".\Static_Debug/"
- WarningLevel="3"
+ WarningLevel="0"
SuppressStartupBanner="true"
- DebugInformationFormat="4"
+ DebugInformationFormat="3"
/>
<Tool
Name="VCManagedResourceCompilerTool"
Modified: freeswitch/trunk/libs/win32/libshout/libshout.vcproj
==============================================================================
--- freeswitch/trunk/libs/win32/libshout/libshout.vcproj (original)
+++ freeswitch/trunk/libs/win32/libshout/libshout.vcproj Wed Jul 30 01:32:51 2008
@@ -52,7 +52,7 @@
AssemblerListingLocation=".$(ConfigurationName)"
ObjectFile=".\Release/"
ProgramDataBaseFileName="$(ConfigurationName)"
- WarningLevel="3"
+ WarningLevel="0"
SuppressStartupBanner="true"
/>
<Tool
@@ -126,9 +126,9 @@
AssemblerListingLocation="$(ConfigurationName)"
ObjectFile=".\Debug/"
ProgramDataBaseFileName="$(ConfigurationName)"
- WarningLevel="3"
+ WarningLevel="0"
SuppressStartupBanner="true"
- DebugInformationFormat="4"
+ DebugInformationFormat="3"
/>
<Tool
Name="VCManagedResourceCompilerTool"
Modified: freeswitch/trunk/src/include/switch_core.h
==============================================================================
--- freeswitch/trunk/src/include/switch_core.h (original)
+++ freeswitch/trunk/src/include/switch_core.h Wed Jul 30 01:32:51 2008
@@ -1236,7 +1236,7 @@
SWITCH_DECLARE(switch_status_t) switch_core_perform_file_open(const char *file, const char *func, int line,
_In_ switch_file_handle_t *fh,
- _In_z_ const char *file_path,
+ _In_opt_z_ const char *file_path,
_In_ uint8_t channels,
_In_ uint32_t rate, _In_ unsigned int flags, _In_opt_ switch_memory_pool_t *pool);
Modified: freeswitch/trunk/src/mod/formats/mod_shout/decode_i386.c
==============================================================================
--- freeswitch/trunk/src/mod/formats/mod_shout/decode_i386.c (original)
+++ freeswitch/trunk/src/mod/formats/mod_shout/decode_i386.c Wed Jul 30 01:32:51 2008
@@ -23,7 +23,9 @@
#define WRITE_SAMPLE(samples,sum,clip) \
if( (sum) > 32767.0) { *(samples) = 0x7fff; (clip)++; } \
else if( (sum) < -32768.0) { *(samples) = -0x8000; (clip)++; } \
- else { *(samples) = sum; }
+ else { *(samples) = (short)sum; }
+
+int synth_1to1(struct mpstr *mp, real * bandPtr, int channel, unsigned char *out, int *pnt);
int synth_1to1_mono(struct mpstr *mp, real * bandPtr, unsigned char *samples, int *pnt)
{
Modified: freeswitch/trunk/src/mod/formats/mod_shout/decode_ntom.c
==============================================================================
--- freeswitch/trunk/src/mod/formats/mod_shout/decode_ntom.c (original)
+++ freeswitch/trunk/src/mod/formats/mod_shout/decode_ntom.c Wed Jul 30 01:32:51 2008
@@ -18,7 +18,7 @@
#define WRITE_SAMPLE(samples,sum,clip) \
if( (sum) > 32767.0) { *(samples) = 0x7fff; (clip)++; } \
else if( (sum) < -32768.0) { *(samples) = -0x8000; (clip)++; } \
- else { *(samples) = sum; }
+ else { *(samples) = (short)sum; }
//static unsigned long ntom_val[2] = { NTOM_MUL >> 1, NTOM_MUL >> 1 };
Modified: freeswitch/trunk/src/mod/formats/mod_shout/layer3.c
==============================================================================
--- freeswitch/trunk/src/mod/formats/mod_shout/layer3.c (original)
+++ freeswitch/trunk/src/mod/formats/mod_shout/layer3.c Wed Jul 30 01:32:51 2008
@@ -112,45 +112,45 @@
int i, j, k, l;
for (i = -256; i < 118 + 4; i++)
- gainpow2[i + 256] = pow((double) 2.0, -0.25 * (double) (i + 210));
+ gainpow2[i + 256] = (real)pow((double) 2.0, -0.25 * (double) (i + 210));
for (i = 0; i < 8207; i++)
- __ispow[i] = pow((double) i, (double) 4.0 / 3.0);
+ __ispow[i] = (real)pow((double) i, (double) 4.0 / 3.0);
for (i = 0; i < 8; i++) {
static double Ci[8] = { -0.6, -0.535, -0.33, -0.185, -0.095, -0.041, -0.0142, -0.0037 };
double sq = sqrt(1.0 + Ci[i] * Ci[i]);
- aa_cs[i] = 1.0 / sq;
- aa_ca[i] = Ci[i] / sq;
+ aa_cs[i] = (real)(1.0 / sq);
+ aa_ca[i] = (real)(Ci[i] / sq);
}
for (i = 0; i < 18; i++) {
- win[0][i] = win[1][i] = 0.5 * sin(M_PI / 72.0 * (double) (2 * (i + 0) + 1)) / cos(M_PI * (double) (2 * (i + 0) + 19) / 72.0);
- win[0][i + 18] = win[3][i + 18] = 0.5 * sin(M_PI / 72.0 * (double) (2 * (i + 18) + 1)) / cos(M_PI * (double) (2 * (i + 18) + 19) / 72.0);
+ win[0][i] = win[1][i] = (real)(0.5 * sin(M_PI / 72.0 * (double) (2 * (i + 0) + 1)) / cos(M_PI * (double) (2 * (i + 0) + 19) / 72.0));
+ win[0][i + 18] = win[3][i + 18] = (real)(0.5 * sin(M_PI / 72.0 * (double) (2 * (i + 18) + 1)) / cos(M_PI * (double) (2 * (i + 18) + 19) / 72.0));
}
for (i = 0; i < 6; i++) {
- win[1][i + 18] = 0.5 / cos(M_PI * (double) (2 * (i + 18) + 19) / 72.0);
- win[3][i + 12] = 0.5 / cos(M_PI * (double) (2 * (i + 12) + 19) / 72.0);
- win[1][i + 24] = 0.5 * sin(M_PI / 24.0 * (double) (2 * i + 13)) / cos(M_PI * (double) (2 * (i + 24) + 19) / 72.0);
- win[1][i + 30] = win[3][i] = 0.0;
- win[3][i + 6] = 0.5 * sin(M_PI / 24.0 * (double) (2 * i + 1)) / cos(M_PI * (double) (2 * (i + 6) + 19) / 72.0);
+ win[1][i + 18] = (real)(0.5 / cos(M_PI * (double) (2 * (i + 18) + 19) / 72.0));
+ win[3][i + 12] = (real)(0.5 / cos(M_PI * (double) (2 * (i + 12) + 19) / 72.0));
+ win[1][i + 24] = (real)(0.5 * sin(M_PI / 24.0 * (double) (2 * i + 13)) / cos(M_PI * (double) (2 * (i + 24) + 19) / 72.0));
+ win[1][i + 30] = win[3][i] = (real)(0.0);
+ win[3][i + 6] = (real)(0.5 * sin(M_PI / 24.0 * (double) (2 * i + 1)) / cos(M_PI * (double) (2 * (i + 6) + 19) / 72.0));
}
for (i = 0; i < 9; i++)
- COS9[i] = cos(M_PI / 18.0 * (double) i);
+ COS9[i] = (real)(cos(M_PI / 18.0 * (double) i));
for (i = 0; i < 9; i++)
- tfcos36[i] = 0.5 / cos(M_PI * (double) (i * 2 + 1) / 36.0);
+ tfcos36[i] = (real)(0.5 / cos(M_PI * (double) (i * 2 + 1) / 36.0));
for (i = 0; i < 3; i++)
- tfcos12[i] = 0.5 / cos(M_PI * (double) (i * 2 + 1) / 12.0);
+ tfcos12[i] = (real)(0.5 / cos(M_PI * (double) (i * 2 + 1) / 12.0));
- COS6_1 = cos(M_PI / 6.0 * (double) 1);
- COS6_2 = cos(M_PI / 6.0 * (double) 2);
+ COS6_1 = (real)(cos(M_PI / 6.0 * (double) 1));
+ COS6_2 = (real)(cos(M_PI / 6.0 * (double) 2));
for (i = 0; i < 12; i++) {
- win[2][i] = 0.5 * sin(M_PI / 24.0 * (double) (2 * i + 1)) / cos(M_PI * (double) (2 * i + 7) / 24.0);
+ win[2][i] = (real)(0.5 * sin(M_PI / 24.0 * (double) (2 * i + 1)) / cos(M_PI * (double) (2 * i + 7) / 24.0));
for (j = 0; j < 6; j++)
- COS1[i][j] = cos(M_PI / 24.0 * (double) ((2 * i + 7) * (2 * j + 1)));
+ COS1[i][j] = (real)(cos(M_PI / 24.0 * (double) ((2 * i + 7) * (2 * j + 1))));
}
for (j = 0; j < 4; j++) {
@@ -163,10 +163,10 @@
for (i = 0; i < 16; i++) {
double t = tan((double) i * M_PI / 12.0);
- tan1_1[i] = t / (1.0 + t);
- tan2_1[i] = 1.0 / (1.0 + t);
- tan1_2[i] = M_SQRT2 * t / (1.0 + t);
- tan2_2[i] = M_SQRT2 / (1.0 + t);
+ tan1_1[i] = (real)(t / (1.0 + t));
+ tan2_1[i] = (real)(1.0 / (1.0 + t));
+ tan1_2[i] = (real)(M_SQRT2 * t / (1.0 + t));
+ tan2_2[i] = (real)(M_SQRT2 / (1.0 + t));
for (j = 0; j < 2; j++) {
double base = pow(2.0, -0.25 * (j + 1.0));
@@ -177,10 +177,10 @@
else
p2 = pow(base, i * 0.5);
}
- pow1_1[j][i] = p1;
- pow2_1[j][i] = p2;
- pow1_2[j][i] = M_SQRT2 * p1;
- pow2_2[j][i] = M_SQRT2 * p2;
+ pow1_1[j][i] = (real)p1;
+ pow2_1[j][i] = (real)p2;
+ pow1_2[j][i] = (real)(M_SQRT2 * p1);
+ pow2_2[j][i] = (real)(M_SQRT2 * p2);
}
}
@@ -1827,7 +1827,7 @@
int *blc = mp->hybrid_blc;
real *rawout1, *rawout2;
int bt;
- int sb = 0;
+ unsigned int sb = 0;
{
int b = blc[ch];
@@ -1981,7 +1981,7 @@
switch (single) {
case 3:
{
- register int i;
+ register unsigned int i;
register real *in0 = (real *) hybridIn[0], *in1 = (real *) hybridIn[1];
for (i = 0; i < SSLIMIT * gr_info->maxb; i++, in0++)
*in0 = (*in0 + *in1++); /* *0.5 done by pow-scale */
@@ -1989,7 +1989,7 @@
break;
case 1:
{
- register int i;
+ register unsigned int i;
register real *in0 = (real *) hybridIn[0], *in1 = (real *) hybridIn[1];
for (i = 0; i < SSLIMIT * gr_info->maxb; i++)
*in0++ = *in1++;
Modified: freeswitch/trunk/src/mod/formats/mod_shout/mod_shout.c
==============================================================================
--- freeswitch/trunk/src/mod/formats/mod_shout/mod_shout.c (original)
+++ freeswitch/trunk/src/mod/formats/mod_shout/mod_shout.c Wed Jul 30 01:32:51 2008
@@ -249,7 +249,7 @@
usedlen = 0;
x = 0;
- if (inlen < bytes) {
+ if (lp < bytes) {
done = 1;
}
@@ -1067,7 +1067,7 @@
stream->write_function(stream, "Content-type: text/html\r\n\r\n<h2>Not Found!</h2>\n" "<META http-equiv=\"refresh\" content=\"1;URL=%s\">", ref);
} else {
switch_media_bug_t *bug = NULL;
- switch_buffer_t *buffer;
+ switch_buffer_t *buffer = NULL;
switch_mutex_t *mutex;
switch_channel_t *channel = switch_core_session_get_channel(tsession);
lame_global_flags *gfp = NULL;
Modified: freeswitch/trunk/src/mod/formats/mod_shout/mod_shout.vcproj
==============================================================================
--- freeswitch/trunk/src/mod/formats/mod_shout/mod_shout.vcproj (original)
+++ freeswitch/trunk/src/mod/formats/mod_shout/mod_shout.vcproj Wed Jul 30 01:32:51 2008
@@ -48,7 +48,7 @@
RuntimeLibrary="3"
WarningLevel="3"
WarnAsError="false"
- DebugInformationFormat="4"
+ DebugInformationFormat="3"
EnablePREfast="false"
/>
<Tool
Modified: freeswitch/trunk/src/mod/formats/mod_shout/tabinit.c
==============================================================================
--- freeswitch/trunk/src/mod/formats/mod_shout/tabinit.c (original)
+++ freeswitch/trunk/src/mod/formats/mod_shout/tabinit.c Wed Jul 30 01:32:51 2008
@@ -46,7 +46,7 @@
divv = 0x40 >> i;
costab = pnts[i];
for (k = 0; k < kr; k++)
- costab[k] = 1.0 / (2.0 * cos(M_PI * ((double) k * 2.0 + 1.0) / (double) divv));
+ costab[k] = (real)(1.0 / (2.0 * cos(M_PI * ((double) k * 2.0 + 1.0) / (double) divv)));
}
}
@@ -60,7 +60,7 @@
scaleval = -scaleval;
for (i = 0, j = 0; i < 256; i++, j++, table += 32) {
if (table < (mp->decwin) + 512 + 16)
- table[16] = table[0] = (double) intwinbase[j] / 65536.0 * (double) scaleval;
+ table[16] = table[0] = (real)((double) intwinbase[j] / 65536.0 * (double) scaleval);
if (i % 32 == 31)
table -= 1023;
if (i % 64 == 63)
@@ -69,7 +69,7 @@
for ( /* i=256 */ ; i < 512; i++, j--, table += 32) {
if (table < (mp->decwin) + 512 + 16)
- table[16] = table[0] = (double) intwinbase[j] / 65536.0 * (double) scaleval;
+ table[16] = table[0] = (real)((double) intwinbase[j] / 65536.0 * (double) scaleval);
if (i % 32 == 31)
table -= 1023;
if (i % 64 == 63)
More information about the Freeswitch-svn
mailing list