Fixed two bugs introduced in the last two commits, one disabled sound, and another wouldn't let plib-based sound compile; also introduced minor style improvements.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/trunk/supertuxkart@1339 178a84e3-b1eb-0310-8ba1-8eac791a3b58
This commit is contained in:
parent
4ed413d5d5
commit
a71c09f62f
@ -65,7 +65,6 @@ SoundManager::SoundManager()
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
m_initialized = true;
|
m_initialized = true;
|
||||||
getcwd
|
|
||||||
#else
|
#else
|
||||||
if(alutInit(0, NULL) == AL_TRUE) // init OpenAL sound system
|
if(alutInit(0, NULL) == AL_TRUE) // init OpenAL sound system
|
||||||
m_initialized = true;
|
m_initialized = true;
|
||||||
@ -180,8 +179,10 @@ void SoundManager::playMusic(const char* filename)
|
|||||||
|
|
||||||
#endif
|
#endif
|
||||||
if(m_current_music == NULL) // no support for file
|
if(m_current_music == NULL) // no support for file
|
||||||
|
{
|
||||||
fprintf(stderr, "WARNING: music file %s format not recognized.\n", filename);
|
fprintf(stderr, "WARNING: music file %s format not recognized.\n", filename);
|
||||||
return;
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
if((m_current_music->load(filename)) == false)
|
if((m_current_music->load(filename)) == false)
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user