search for: shrt_max

Displaying 8 results from an estimated 8 matches for "shrt_max".

Did you mean: ushrt_max
2004 Jul 15
2
[LLVMdev] Constants.cpp:368: error: `INT8_MAX' undeclared(firstuse this function)
..._UNSIGNED) || defined(__CHAR_UNSIGNED__) #define CHAR_MIN 0 #define CHAR_MAX UCHAR_MAX #else #define CHAR_MIN SCHAR_MIN /* mim value for a char */ #define CHAR_MAX SCHAR_MAX /* max value for a char */ #endif /* _CHAR_UNSIGNED */ #define SHRT_MIN (-32768) /* min value for (signed) short */ #define SHRT_MAX 32767 /* max value for (signed) short */ #define USHRT_MAX 0xffff /* max value for unsigned short */ #define INT_MIN (-2147483647-1) /* min value for (signed) int */ #define INT_MAX 2147483647 /* max value for (signed) int */ #define UINT_MAX 0xffffffff /* max value for unsigned...
2015 Feb 19
0
[PATCH] oggenc: validate count of channels in the header
...return 0; } - format.channels = READ_U16_BE(buffer); + format.channels = channels = READ_U16_BE(buffer); format.totalframes = READ_U32_BE(buffer+2); format.samplesize = READ_U16_BE(buffer+6); format.rate = (int)read_IEEE80(buffer+8); + if(channels <= 0L || SHRT_MAX < channels) + { + fprintf(stderr, _("Warning: Unsupported count of channels in AIFF header\n")); + return 0; + } + aiff->bigendian = 1; if(aifc) @@ -416,6 +424,7 @@ int wav_open(FILE *in, oe_enc_opt *opt, unsigned char *oldbuf, int buflen) wav_fm...
2004 Jul 14
0
[LLVMdev] Constants.cpp:368: error: `INT8_MAX' undeclared(firstuse this function)
..._UNSIGNED) || defined(__CHAR_UNSIGNED__) #define CHAR_MIN 0 #define CHAR_MAX UCHAR_MAX #else #define CHAR_MIN SCHAR_MIN /* mim value for a char */ #define CHAR_MAX SCHAR_MAX /* max value for a char */ #endif /* _CHAR_UNSIGNED */ #define SHRT_MIN (-32768) /* min value for (signed) short */ #define SHRT_MAX 32767 /* max value for (signed) short */ #define USHRT_MAX 0xffff /* max value for unsigned short */ #define INT_MIN (-2147483647-1) /* min value for (signed) int */ #define INT_MAX 2147483647 /* max value for (signed) int */ #define UINT_MAX 0xffffffff /* max value for unsigned...
2004 Jul 15
0
[LLVMdev] Constants.cpp:368: error: `INT8_MAX' undeclared(firstuse this function)
...efine CHAR_MIN 0 > #define CHAR_MAX UCHAR_MAX > #else > #define CHAR_MIN SCHAR_MIN /* mim value for a char */ > #define CHAR_MAX SCHAR_MAX /* max value for a char */ > #endif /* _CHAR_UNSIGNED */ > > > #define SHRT_MIN (-32768) /* min value for (signed) short */ > #define SHRT_MAX 32767 /* max value for (signed) short */ > #define USHRT_MAX 0xffff /* max value for unsigned short */ > > #define INT_MIN (-2147483647-1) /* min value for (signed) int */ > #define INT_MAX 2147483647 /* max value for (signed) int */ > #define UINT_MAX 0xffffffff /*...
2009 Oct 05
3
Questions about app_jack.c
...applications when I force them to use jack as input/output. -> probably not a jack configuration problem. 3) If I kill jackd and I use chan_alsa.so with the real soundcard, it works. -> probably not a network or sip configuration problem. 4) If I replace "f_buf[i] = s_buf[i] * (1.0 / SHRT_MAX);" with "f_buf[i] = 0.5 * sin(0.3454 * ((float) i));" in app_jack.c and I retry the test 2, I get test sound. It looks like no sound was read in channel... Do you have any idea ? Fabien
2011 Dec 22
1
[Bug 44061] New: dri/nouveau: Build error with clang
...: note: expanded from macro 'EXTRACT' out_t f(struct nouveau_array *a, int i, int j) { \ ^ nouveau_array.c:58:16: error: illegal storage class on function *extract_f = EXTRACT(short, float, SHRT_MAX); ^ nouveau_array.c:38:3: note: expanded from macro 'EXTRACT' auto out_t f(struct nouveau_array *, int, int); \ ^ nouveau_array.c:58:16: error: expected ';' at end of declaration *extract_f = EXTRAC...
2014 Jan 20
2
Float audio question
I've had trouble getting a definitive answer to this one, so please forgive me for asking here. When converting between integer and float audio samples, what is the preferred scale factor? For example, if you were converting to signed 8-bit, the possible range is -128 to 127. Do you map float -1.0 to -127 or -128? Brendan
2007 Jul 27
0
Wine release 0.9.42
...ns for GetServiceDisplayNameW. Peter Dons Tychsen (1): x11drv: Fix the special case where windows have WS_CHILD and WS_POPUP. Rob Shearman (18): ole32: Remove some dead code. rpcrt4: Even though FC_ENUM16 is an unsigned type, the highest allowable value that can be marshalled is SHRT_MAX, not USHRT_MAX. rpcrt4: Check to make sure there is enough data in the buffer during unmarshalling, so that the code doesn't try to read beyound the end of the buffer. rpcrt4: Never allocate memory for the discriminant in union_arm_unmarshall as the memory is part of the union and h...