aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/linden/indra/newview/llappviewer.cpp
diff options
context:
space:
mode:
authorMcCabe Maxsted2011-06-24 17:53:33 -0700
committerMcCabe Maxsted2011-06-24 17:53:33 -0700
commit5cf5dc73eadaa6ba1ebc92aa67c622e600926f24 (patch)
tree7bc764727445099e77c0044caaabd2169daba2d1 /linden/indra/newview/llappviewer.cpp
parentCreated new window for inworld dice rolling in advanced > UI. Todo: add butto... (diff)
downloadmeta-impy-5cf5dc73eadaa6ba1ebc92aa67c622e600926f24.zip
meta-impy-5cf5dc73eadaa6ba1ebc92aa67c622e600926f24.tar.gz
meta-impy-5cf5dc73eadaa6ba1ebc92aa67c622e600926f24.tar.bz2
meta-impy-5cf5dc73eadaa6ba1ebc92aa67c622e600926f24.tar.xz
Tiny bit of coding standards changes for llaudioengine_openal and moved audio engine cleanup later during shutdown to prevent conflicts
Diffstat (limited to 'linden/indra/newview/llappviewer.cpp')
-rw-r--r--linden/indra/newview/llappviewer.cpp59
1 files changed, 30 insertions, 29 deletions
diff --git a/linden/indra/newview/llappviewer.cpp b/linden/indra/newview/llappviewer.cpp
index aeb52a2..c9ab291 100644
--- a/linden/indra/newview/llappviewer.cpp
+++ b/linden/indra/newview/llappviewer.cpp
@@ -1284,35 +1284,6 @@ bool LLAppViewer::cleanup()
1284 1284
1285 llinfos << "Global stuff deleted" << llendflush; 1285 llinfos << "Global stuff deleted" << llendflush;
1286 1286
1287 if (gAudioStream)
1288 {
1289 // shut down the streaming audio sub-subsystem first, in case it relies on not outliving the general audio subsystem.
1290
1291 delete gAudioStream;
1292 gAudioStream = NULL;
1293 }
1294
1295 if (gAudiop)
1296 {
1297 // shut down the audio subsystem
1298
1299 bool want_longname = false;
1300 if (gAudiop->getDriverName(want_longname) == "FMOD")
1301 {
1302 // This hack exists because fmod likes to occasionally
1303 // crash or hang forever when shutting down, for no
1304 // apparent reason.
1305 llwarns << "Hack, skipping FMOD audio engine cleanup" << llendflush;
1306 }
1307 else
1308 {
1309 gAudiop->shutdown();
1310 }
1311
1312 delete gAudiop;
1313 gAudiop = NULL;
1314 }
1315
1316 // Note: this is where LLFeatureManager::getInstance()-> used to be deleted. 1287 // Note: this is where LLFeatureManager::getInstance()-> used to be deleted.
1317 1288
1318 // Patch up settings for next time 1289 // Patch up settings for next time
@@ -1548,6 +1519,36 @@ bool LLAppViewer::cleanup()
1548 end_messaging_system(); 1519 end_messaging_system();
1549 llinfos << "Message system deleted." << llendflush; 1520 llinfos << "Message system deleted." << llendflush;
1550 1521
1522 if (gAudioStream)
1523 {
1524 // shut down the streaming audio sub-subsystem first, in case it relies on not outliving the general audio subsystem.
1525
1526 delete gAudioStream;
1527 gAudioStream = NULL;
1528 }
1529
1530 if (gAudiop)
1531 {
1532 // shut down the audio subsystem
1533
1534 bool want_longname = false;
1535 if (gAudiop->getDriverName(want_longname) == "FMOD")
1536 {
1537 // This hack exists because fmod likes to occasionally
1538 // crash or hang forever when shutting down, for no
1539 // apparent reason.
1540 llwarns << "Hack, skipping FMOD audio engine cleanup" << llendflush;
1541 }
1542 else
1543 {
1544 gAudiop->shutdown();
1545 }
1546
1547 delete gAudiop;
1548 gAudiop = NULL;
1549 }
1550 llinfos << "Audio system deleted" << llendl;
1551
1551 // *NOTE:Mani - The following call is not thread safe. 1552 // *NOTE:Mani - The following call is not thread safe.
1552 LLCurl::cleanupClass(); 1553 LLCurl::cleanupClass();
1553 llinfos << "LLCurl cleaned up." << llendflush; 1554 llinfos << "LLCurl cleaned up." << llendflush;