From 95429c20ebc70b08cedcc9be0432733a65d23b16 Mon Sep 17 00:00:00 2001 From: Steve Checkoway Date: Sat, 24 Mar 2007 04:38:47 +0000 Subject: [PATCH] Include global.h. --- stepmania/src/arch/Sound/RageSoundDriver_AU.cpp | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/stepmania/src/arch/Sound/RageSoundDriver_AU.cpp b/stepmania/src/arch/Sound/RageSoundDriver_AU.cpp index 45cece097a..76b1e58b4b 100644 --- a/stepmania/src/arch/Sound/RageSoundDriver_AU.cpp +++ b/stepmania/src/arch/Sound/RageSoundDriver_AU.cpp @@ -1,3 +1,4 @@ +#include "global.h" #include "RageSoundDriver_AU.h" #include "RageLog.h" #include "PrefsManager.h" @@ -46,9 +47,11 @@ RageSoundDriver_AU::RageSoundDriver_AU() : m_OutputUnit(NULL), m_iSampleRate(0), void RageSoundDriver_AU::NameHALThread( CFRunLoopObserverRef observer, CFRunLoopActivity activity, void *inRefCon ) { RageSoundDriver_AU *This = (RageSoundDriver_AU *)inRefCon; - - This->m_pNotificationThread = new RageThreadRegister( "HAL notification thread" ); - This->m_Semaphore.Post(); + if( This->m_pNotificationThread == NULL ) + { + This->m_pNotificationThread = new RageThreadRegister( "HAL notification thread" ); + This->m_Semaphore.Post(); + } } RString RageSoundDriver_AU::Init()