[aquaria] Fix in "SoundManager.cpp" to Avoid Crash (Windows Build) on SoundCore::system->init
Jonathan Armstrong
jda2158 at gmail.com
Mon Feb 14 00:38:54 EST 2011
On a Windows build, see below for a fix if you are experiencing crashes when
calling:
result = SoundCore::system->init(channels, FMOD_INIT_NORMAL, 0);
Specifically this occurs in SoundManager::SoundManager(const std::string
&defaultDevice) {} of "SoundManager.cpp". First fix approach was to comment
out this line, but sound is then unavailable. See below for a proposed fix
and a forum post related to this issue.
///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
#ifdef BBGE_BUILD_WINDOWS
// anymore than this on Windows platform seems to cause OpenAL debug
breakpoints
// to fire when SoundCore::System->init is called
// see (
http://www.gamedev.net/topic/102469-openal--algensources-problem/)
// for details --jda.
int channels = 28;
#else
int channels = 128;
#endif
///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
Respectfully,
--
Jonathan D. Armstrong
jda2158 at gmail.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://icculus.org/pipermail/aquaria/attachments/20110213/451e74e9/attachment.htm>
More information about the aquaria
mailing list