Mercurial > almixer_isolated
diff ALmixer.c @ 26:884cce2515eb
Put LowerThreadPriority in ENABLE_ALMIXER_THREADS_BLOCK
author | Eric Wing <ewing . public |-at-| gmail . com> |
---|---|
date | Fri, 24 Dec 2010 13:58:04 -0800 |
parents | 46e82b415520 |
children | 9cf93a099f75 |
line wrap: on
line diff
--- a/ALmixer.c Fri Dec 24 03:33:31 2010 -0800 +++ b/ALmixer.c Fri Dec 24 13:58:04 2010 -0800 @@ -225,7 +225,7 @@ */ static SDL_mutex* s_simpleLock; static SDL_Thread* Stream_Thread_global = NULL; -#endif +#endif /* ENABLE_ALMIXER_THREADS */ static LinkedList* s_listOfALmixerData = NULL; @@ -351,6 +351,7 @@ * performance problems and cannot get audio to show up as a significant percentage * of the CPU time in Shark/Instruments. */ +#ifdef ENABLE_ALMIXER_THREADS #if defined(__APPLE__) && !defined(ALMIXER_COMPILE_WITHOUT_SDL) && ( (TARGET_OS_IPHONE == 1) || (TARGET_IPHONE_SIMULATOR == 1) ) #include <pthread.h> #endif @@ -373,6 +374,7 @@ /* No-Op */ #endif } +#endif /* ENABLE_ALMIXER_THREADS */ /* If ENABLE_PARANOID_SIGNEDNESS_CHECK is used, * these values will be reset on Init()