Add sound hack in debug mode on OSX to make STK more pleasant to debug ;)
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@10748 178a84e3-b1eb-0310-8ba1-8eac791a3b58
This commit is contained in:
parent
a9516bb08d
commit
9d4157de93
@ -48,6 +48,15 @@ MusicManager::MusicManager()
|
|||||||
|
|
||||||
//FIXME: I'm not sure that this code goes here
|
//FIXME: I'm not sure that this code goes here
|
||||||
#if HAVE_OGGVORBIS
|
#if HAVE_OGGVORBIS
|
||||||
|
|
||||||
|
#if defined(__APPLE__) && !defined(NDEBUG)
|
||||||
|
// HACK: On OSX, when OpenAL is initialized, breaking in a debugger causes
|
||||||
|
// my iTunes music to stop too, which is highly annoying ;) so in debug
|
||||||
|
// mode, require a restart to enable sound
|
||||||
|
if (UserConfigParams::m_sfx || UserConfigParams::m_music)
|
||||||
|
{
|
||||||
|
#endif
|
||||||
|
|
||||||
ALCdevice* device = alcOpenDevice ( NULL ); //The default sound device
|
ALCdevice* device = alcOpenDevice ( NULL ); //The default sound device
|
||||||
if( device == NULL )
|
if( device == NULL )
|
||||||
{
|
{
|
||||||
@ -70,6 +79,10 @@ MusicManager::MusicManager()
|
|||||||
m_initialized = true;
|
m_initialized = true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#if defined(__APPLE__) && !defined(NDEBUG)
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
alGetError(); //Called here to clear any non-important errors found
|
alGetError(); //Called here to clear any non-important errors found
|
||||||
#endif
|
#endif
|
||||||
|
Loading…
Reference in New Issue
Block a user