Get rid of the remaining min/max usage
This commit is contained in:
parent
9f5bf5f930
commit
38a4d9a6c5
@ -592,7 +592,7 @@ ALvoid MixSource(ALsource *Source, ALCdevice *Device, ALuint SamplesToDo)
|
||||
DataSize64 += BufferPadding+BufferPrePadding;
|
||||
DataSize64 *= FrameSize;
|
||||
|
||||
BufferSize = min(DataSize64, STACK_DATA_SIZE);
|
||||
BufferSize = ((DataSize64 > STACK_DATA_SIZE) ? STACK_DATA_SIZE : DataSize64);
|
||||
BufferSize -= BufferSize%FrameSize;
|
||||
|
||||
if(Source->lSourceType == AL_STATIC)
|
||||
|
@ -216,9 +216,6 @@ static __inline void Sleep(ALuint t)
|
||||
tv = rem;
|
||||
}
|
||||
|
||||
#define min(x,y) (((x)<(y))?(x):(y))
|
||||
#define max(x,y) (((x)>(y))?(x):(y))
|
||||
|
||||
#if defined(HAVE_DLFCN_H)
|
||||
#define HAVE_DYNLOAD 1
|
||||
void *LoadLib(const char *name);
|
||||
|
@ -49,14 +49,6 @@
|
||||
#define aluFabs(x) ((ALfloat)fabs((double)(x)))
|
||||
#endif
|
||||
|
||||
// fixes for mingw32.
|
||||
#if defined(max) && !defined(__max)
|
||||
#define __max max
|
||||
#endif
|
||||
#if defined(min) && !defined(__min)
|
||||
#define __min min
|
||||
#endif
|
||||
|
||||
#define QUADRANT_NUM 128
|
||||
#define LUT_NUM (4 * QUADRANT_NUM)
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user