/*! function to close the file */
switch_status (*file_close)(switch_file_handle *);
/*! function to read from the file */
- switch_status (*file_read)(switch_file_handle *, void *data, unsigned int *len);
+ switch_status (*file_read)(switch_file_handle *, void *data, size_t *len);
/*! function to write from the file */
- switch_status (*file_write)(switch_file_handle *, void *data, unsigned int *len);
+ switch_status (*file_write)(switch_file_handle *, void *data, size_t *len);
/*! function to seek to a certian position in the file */
switch_status (*file_seek)(switch_file_handle *, unsigned int *cur_pos, unsigned int samples, int whence);
/*! list of supported file extensions */
strncpy(chan_type, data, sizeof(chan_type));
- if ((chan_data = strchr(chan_type, '/'))) {
+ if ((chan_data = strchr(chan_type, '/')) != 0) {
*chan_data = '\0';
chan_data++;
}
BasicRuntimeChecks="3"\r
RuntimeLibrary="1"\r
UsePrecompiledHeader="0"\r
- WarningLevel="3"\r
+ WarningLevel="4"\r
Detect64BitPortabilityProblems="true"\r
DebugInformationFormat="4"\r
/>\r
PreprocessorDefinitions="WIN32;NDEBUG;_WINDOWS;_USRDLL;MOD_EXPORTS"\r
RuntimeLibrary="0"\r
UsePrecompiledHeader="0"\r
- WarningLevel="3"\r
+ WarningLevel="4"\r
Detect64BitPortabilityProblems="true"\r
DebugInformationFormat="3"\r
/>\r
BasicRuntimeChecks="3"\r
RuntimeLibrary="1"\r
UsePrecompiledHeader="0"\r
- WarningLevel="3"\r
+ WarningLevel="4"\r
Detect64BitPortabilityProblems="true"\r
DebugInformationFormat="4"\r
/>\r
PreprocessorDefinitions="WIN32;NDEBUG;_WINDOWS;_USRDLL;MOD_EXPORTS"\r
RuntimeLibrary="0"\r
UsePrecompiledHeader="0"\r
- WarningLevel="3"\r
+ WarningLevel="4"\r
Detect64BitPortabilityProblems="true"\r
DebugInformationFormat="3"\r
/>\r
file_name = switch_core_session_strdup(session, data);
- if ((timer_name = strchr(file_name, ' '))) {
+ if ((timer_name = strchr(file_name, ' ')) != 0) {
*timer_name++ = '\0';
}
BasicRuntimeChecks="3"\r
RuntimeLibrary="1"\r
UsePrecompiledHeader="0"\r
- WarningLevel="3"\r
+ WarningLevel="4"\r
Detect64BitPortabilityProblems="true"\r
DebugInformationFormat="4"\r
/>\r
PreprocessorDefinitions="WIN32;NDEBUG;_WINDOWS;_USRDLL;MOD_EXPORTS"\r
RuntimeLibrary="0"\r
UsePrecompiledHeader="0"\r
- WarningLevel="3"\r
+ WarningLevel="4"\r
Detect64BitPortabilityProblems="true"\r
DebugInformationFormat="3"\r
/>\r
aval |= (pcm_val >> 1) & QUANT_MASK;
else
aval |= (pcm_val >> seg) & QUANT_MASK;
- return (aval ^ mask);
+ return (unsigned char)(aval ^ mask);
}
}
a_val ^= 0x55;
t = (a_val & QUANT_MASK) << 4;
- seg = ((unsigned) a_val & SEG_MASK) >> SEG_SHIFT;
+ seg = (short)(((unsigned) a_val & SEG_MASK) >> SEG_SHIFT);
switch (seg) {
case 0:
t += 8;
if (seg >= 8) /* out of range, return maximum value. */
return (unsigned char) (0x7F ^ mask);
else {
- uval = (unsigned char) (seg << 4) | ((pcm_val >> (seg + 1)) & 0xF);
- return (uval ^ mask);
+ uval = (unsigned char) ((seg << 4) | ((pcm_val >> (seg + 1)) & 0xF));
+ return (unsigned char) (uval ^ mask);
}
}
BasicRuntimeChecks="3"\r
RuntimeLibrary="1"\r
UsePrecompiledHeader="0"\r
- WarningLevel="3"\r
+ WarningLevel="4"\r
Detect64BitPortabilityProblems="true"\r
DebugInformationFormat="4"\r
/>\r
PreprocessorDefinitions="WIN32;NDEBUG;_WINDOWS;_USRDLL;MOD_EXPORTS"\r
RuntimeLibrary="0"\r
UsePrecompiledHeader="0"\r
- WarningLevel="3"\r
+ WarningLevel="4"\r
Detect64BitPortabilityProblems="true"\r
DebugInformationFormat="3"\r
/>\r
BasicRuntimeChecks="3"\r
RuntimeLibrary="1"\r
UsePrecompiledHeader="0"\r
- WarningLevel="3"\r
+ WarningLevel="4"\r
Detect64BitPortabilityProblems="true"\r
DebugInformationFormat="4"\r
/>\r
PreprocessorDefinitions="WIN32;NDEBUG;_WINDOWS;_USRDLL;MOD_EXPORTS"\r
RuntimeLibrary="0"\r
UsePrecompiledHeader="0"\r
- WarningLevel="3"\r
+ WarningLevel="4"\r
Detect64BitPortabilityProblems="true"\r
DebugInformationFormat="3"\r
/>\r
BasicRuntimeChecks="3"\r
RuntimeLibrary="3"\r
UsePrecompiledHeader="0"\r
- WarningLevel="3"\r
+ WarningLevel="4"\r
Detect64BitPortabilityProblems="true"\r
DebugInformationFormat="4"\r
/>\r
PreprocessorDefinitions="WIN32;NDEBUG;_WINDOWS;_USRDLL;MOD_EXPORTS"\r
RuntimeLibrary="2"\r
UsePrecompiledHeader="0"\r
- WarningLevel="3"\r
+ WarningLevel="4"\r
Detect64BitPortabilityProblems="true"\r
DebugInformationFormat="3"\r
/>\r
BasicRuntimeChecks="3"\r
RuntimeLibrary="1"\r
UsePrecompiledHeader="0"\r
- WarningLevel="3"\r
+ WarningLevel="4"\r
Detect64BitPortabilityProblems="true"\r
DebugInformationFormat="4"\r
/>\r
PreprocessorDefinitions="WIN32;NDEBUG;_WINDOWS;_USRDLL;MOD_EXPORTS"\r
RuntimeLibrary="0"\r
UsePrecompiledHeader="0"\r
- WarningLevel="3"\r
+ WarningLevel="4"\r
Detect64BitPortabilityProblems="true"\r
DebugInformationFormat="3"\r
/>\r
memcpy(&codec->codec_settings, codec_settings, sizeof(codec->codec_settings));
- if (!(encoding || decoding) || (!(context = switch_core_alloc(codec->memory_pool, sizeof(*context))))) {
+ if (!(encoding || decoding) || ((context = switch_core_alloc(codec->memory_pool, sizeof(*context))) == 0)) {
return SWITCH_STATUS_FALSE;
} else {
const SpeexMode *mode = NULL;
BasicRuntimeChecks="3"\r
RuntimeLibrary="1"\r
UsePrecompiledHeader="0"\r
- WarningLevel="3"\r
+ WarningLevel="4"\r
Detect64BitPortabilityProblems="true"\r
DebugInformationFormat="4"\r
/>\r
PreprocessorDefinitions="WIN32;NDEBUG;_WINDOWS;_USRDLL;MOD_EXPORTS"\r
RuntimeLibrary="0"\r
UsePrecompiledHeader="0"\r
- WarningLevel="3"\r
+ WarningLevel="4"\r
Detect64BitPortabilityProblems="true"\r
DebugInformationFormat="3"\r
/>\r
BasicRuntimeChecks="3"\r
RuntimeLibrary="1"\r
UsePrecompiledHeader="0"\r
- WarningLevel="3"\r
+ WarningLevel="4"\r
Detect64BitPortabilityProblems="true"\r
DebugInformationFormat="4"\r
/>\r
PreprocessorDefinitions="WIN32;NDEBUG;_WINDOWS;_USRDLL;MOD_EXPORTS"\r
RuntimeLibrary="0"\r
UsePrecompiledHeader="0"\r
- WarningLevel="3"\r
+ WarningLevel="4"\r
Detect64BitPortabilityProblems="true"\r
DebugInformationFormat="3"\r
/>\r
BasicRuntimeChecks="3"\r
RuntimeLibrary="1"\r
UsePrecompiledHeader="0"\r
- WarningLevel="3"\r
+ WarningLevel="4"\r
Detect64BitPortabilityProblems="true"\r
DebugInformationFormat="4"\r
/>\r
PreprocessorDefinitions="WIN32;NDEBUG;_WINDOWS;_USRDLL;MOD_EXPORTS"\r
RuntimeLibrary="0"\r
UsePrecompiledHeader="0"\r
- WarningLevel="3"\r
+ WarningLevel="4"\r
Detect64BitPortabilityProblems="true"\r
DebugInformationFormat="3"\r
/>\r
BasicRuntimeChecks="3"\r
RuntimeLibrary="1"\r
UsePrecompiledHeader="0"\r
- WarningLevel="3"\r
+ WarningLevel="4"\r
Detect64BitPortabilityProblems="true"\r
DebugInformationFormat="4"\r
/>\r
PreprocessorDefinitions="WIN32;NDEBUG;_WINDOWS;_USRDLL;MOD_EXPORTS;PCRE_STATIC"\r
RuntimeLibrary="0"\r
UsePrecompiledHeader="0"\r
- WarningLevel="3"\r
+ WarningLevel="4"\r
Detect64BitPortabilityProblems="true"\r
DebugInformationFormat="3"\r
/>\r
BasicRuntimeChecks="3"\r
RuntimeLibrary="1"\r
UsePrecompiledHeader="0"\r
- WarningLevel="3"\r
+ WarningLevel="4"\r
Detect64BitPortabilityProblems="true"\r
DebugInformationFormat="4"\r
/>\r
PreprocessorDefinitions="WIN32;NDEBUG;_WINDOWS;_USRDLL;MOD_EXPORTS;LDAP_DEPRECATED"\r
RuntimeLibrary="0"\r
UsePrecompiledHeader="0"\r
- WarningLevel="3"\r
+ WarningLevel="4"\r
Detect64BitPortabilityProblems="true"\r
DebugInformationFormat="3"\r
/>\r
BasicRuntimeChecks="3"\r
RuntimeLibrary="1"\r
UsePrecompiledHeader="0"\r
- WarningLevel="3"\r
+ WarningLevel="4"\r
Detect64BitPortabilityProblems="true"\r
DebugInformationFormat="4"\r
/>\r
PreprocessorDefinitions="WIN32;NDEBUG;_WINDOWS;_USRDLL;MOD_EXPORTS;MSLDAP"\r
RuntimeLibrary="0"\r
UsePrecompiledHeader="0"\r
- WarningLevel="3"\r
+ WarningLevel="4"\r
Detect64BitPortabilityProblems="true"\r
DebugInformationFormat="3"\r
/>\r
BasicRuntimeChecks="3"\r
RuntimeLibrary="1"\r
UsePrecompiledHeader="0"\r
- WarningLevel="3"\r
+ WarningLevel="4"\r
Detect64BitPortabilityProblems="true"\r
DebugInformationFormat="4"\r
/>\r
PreprocessorDefinitions="WIN32;NDEBUG;_WINDOWS;_USRDLL;MOD_EXPORTS"\r
RuntimeLibrary="0"\r
UsePrecompiledHeader="0"\r
- WarningLevel="3"\r
+ WarningLevel="4"\r
Detect64BitPortabilityProblems="true"\r
DebugInformationFormat="3"\r
/>\r
BasicRuntimeChecks="3"\r
RuntimeLibrary="3"\r
UsePrecompiledHeader="0"\r
- WarningLevel="3"\r
+ WarningLevel="4"\r
Detect64BitPortabilityProblems="true"\r
DebugInformationFormat="4"\r
/>\r
PreprocessorDefinitions="WIN32;NDEBUG;_WINDOWS;_USRDLL;MOD_EXPORTS"\r
RuntimeLibrary="2"\r
UsePrecompiledHeader="0"\r
- WarningLevel="3"\r
+ WarningLevel="4"\r
Detect64BitPortabilityProblems="true"\r
DebugInformationFormat="3"\r
/>\r
BasicRuntimeChecks="3"\r
RuntimeLibrary="1"\r
UsePrecompiledHeader="0"\r
- WarningLevel="3"\r
+ WarningLevel="4"\r
Detect64BitPortabilityProblems="true"\r
DebugInformationFormat="4"\r
/>\r
PreprocessorDefinitions="WIN32;NDEBUG;_WINDOWS;_USRDLL;MOD_EXPORTS"\r
RuntimeLibrary="0"\r
UsePrecompiledHeader="0"\r
- WarningLevel="3"\r
+ WarningLevel="4"\r
Detect64BitPortabilityProblems="true"\r
DebugInformationFormat="3"\r
/>\r
BasicRuntimeChecks="3"\r
RuntimeLibrary="1"\r
UsePrecompiledHeader="0"\r
- WarningLevel="3"\r
+ WarningLevel="4"\r
Detect64BitPortabilityProblems="true"\r
DebugInformationFormat="4"\r
/>\r
PreprocessorDefinitions="WIN32;NDEBUG;_WINDOWS;_USRDLL;MOD_EXPORTS"\r
RuntimeLibrary="0"\r
UsePrecompiledHeader="0"\r
- WarningLevel="3"\r
+ WarningLevel="4"\r
Detect64BitPortabilityProblems="true"\r
DebugInformationFormat="3"\r
/>\r
BasicRuntimeChecks="3"\r
RuntimeLibrary="1"\r
UsePrecompiledHeader="0"\r
- WarningLevel="3"\r
+ WarningLevel="4"\r
Detect64BitPortabilityProblems="true"\r
DebugInformationFormat="4"\r
/>\r
PreprocessorDefinitions="WIN32;NDEBUG;_WINDOWS;_USRDLL;MOD_EXPORTS"\r
RuntimeLibrary="0"\r
UsePrecompiledHeader="0"\r
- WarningLevel="3"\r
+ WarningLevel="4"\r
Detect64BitPortabilityProblems="true"\r
DebugInformationFormat="3"\r
/>\r
BasicRuntimeChecks="3"\r
RuntimeLibrary="1"\r
UsePrecompiledHeader="0"\r
- WarningLevel="3"\r
+ WarningLevel="4"\r
Detect64BitPortabilityProblems="true"\r
DebugInformationFormat="4"\r
/>\r
PreprocessorDefinitions="WIN32;NDEBUG;_WINDOWS;_USRDLL;MOD_EXPORTS"\r
RuntimeLibrary="0"\r
UsePrecompiledHeader="0"\r
- WarningLevel="3"\r
+ WarningLevel="4"\r
Detect64BitPortabilityProblems="true"\r
DebugInformationFormat="3"\r
/>\r
BasicRuntimeChecks="3"\r
RuntimeLibrary="3"\r
UsePrecompiledHeader="0"\r
- WarningLevel="3"\r
+ WarningLevel="4"\r
Detect64BitPortabilityProblems="true"\r
DebugInformationFormat="4"\r
/>\r
PreprocessorDefinitions="WIN32;NDEBUG;_WINDOWS;_USRDLL;MOD_EXPORTS"\r
RuntimeLibrary="2"\r
UsePrecompiledHeader="0"\r
- WarningLevel="3"\r
+ WarningLevel="4"\r
Detect64BitPortabilityProblems="true"\r
DebugInformationFormat="3"\r
/>\r
BasicRuntimeChecks="3"\r
RuntimeLibrary="1"\r
UsePrecompiledHeader="0"\r
- WarningLevel="3"\r
+ WarningLevel="4"\r
Detect64BitPortabilityProblems="true"\r
DebugInformationFormat="4"\r
/>\r
PreprocessorDefinitions="WIN32;NDEBUG;_WINDOWS;_USRDLL;MOD_EXPORTS"\r
RuntimeLibrary="0"\r
UsePrecompiledHeader="0"\r
- WarningLevel="3"\r
+ WarningLevel="4"\r
Detect64BitPortabilityProblems="true"\r
DebugInformationFormat="3"\r
/>\r
char *ext;
int ready = 1;
- if (!(ext = strrchr(path, '.'))) {
+ if ((ext = strrchr(path, '.')) == 0) {
switch_console_printf(SWITCH_CHANNEL_CONSOLE, "Invalid Format\n");
return SWITCH_STATUS_GENERR;
}
return SWITCH_STATUS_GENERR;
}
- if (!(context = switch_core_alloc(handle->memory_pool, sizeof(*context)))) {
+ if ((context = switch_core_alloc(handle->memory_pool, sizeof(*context))) == 0) {
return SWITCH_STATUS_MEMERR;
}
};
- if (!(context->handle = sf_open(path, mode, &context->sfinfo))) {
+ if ((context->handle = sf_open(path, mode, &context->sfinfo)) == 0) {
switch_console_printf(SWITCH_CHANNEL_CONSOLE, "Error Opening File [%s] [%s]\n", path,
sf_strerror(context->handle));
return SWITCH_STATUS_GENERR;
BasicRuntimeChecks="3"\r
RuntimeLibrary="3"\r
UsePrecompiledHeader="0"\r
- WarningLevel="3"\r
+ WarningLevel="4"\r
Detect64BitPortabilityProblems="true"\r
DebugInformationFormat="4"\r
/>\r
PreprocessorDefinitions="WIN32;NDEBUG;_WINDOWS;_USRDLL;MOD_EXPORTS"\r
RuntimeLibrary="2"\r
UsePrecompiledHeader="0"\r
- WarningLevel="3"\r
+ WarningLevel="4"\r
Detect64BitPortabilityProblems="true"\r
DebugInformationFormat="3"\r
/>\r
BasicRuntimeChecks="3"\r
RuntimeLibrary="1"\r
UsePrecompiledHeader="0"\r
- WarningLevel="3"\r
+ WarningLevel="4"\r
Detect64BitPortabilityProblems="true"\r
DebugInformationFormat="4"\r
/>\r
PreprocessorDefinitions="WIN32;NDEBUG;_WINDOWS;_USRDLL;MOD_EXPORTS"\r
RuntimeLibrary="0"\r
UsePrecompiledHeader="0"\r
- WarningLevel="3"\r
+ WarningLevel="4"\r
Detect64BitPortabilityProblems="true"\r
DebugInformationFormat="3"\r
/>\r
BasicRuntimeChecks="3"\r
RuntimeLibrary="1"\r
UsePrecompiledHeader="0"\r
- WarningLevel="3"\r
+ WarningLevel="4"\r
Detect64BitPortabilityProblems="true"\r
DebugInformationFormat="4"\r
/>\r
PreprocessorDefinitions="WIN32;NDEBUG;_CONSOLE"\r
RuntimeLibrary="0"\r
UsePrecompiledHeader="0"\r
- WarningLevel="3"\r
+ WarningLevel="4"\r
Detect64BitPortabilityProblems="true"\r
DebugInformationFormat="3"\r
/>\r