# HG changeset patch # User Eric Wing # Date 1293227884 28800 # Node ID 884cce2515eb52370b15168065e7b89c0c271975 # Parent 46e82b41552072ee798bbe1eb0adae5372b002b4 Put LowerThreadPriority in ENABLE_ALMIXER_THREADS_BLOCK diff -r 46e82b415520 -r 884cce2515eb ALmixer.c --- 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 #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()