sound init/exit so at least the player opens

This commit is contained in:
Campbell Barton 2009-09-03 07:12:41 +00:00
parent 99fbcbcf4d
commit 070f12d0dd
2 changed files with 6 additions and 1 deletions

@ -343,8 +343,8 @@ void GPC_Engine::Exit()
{ {
#if 0 //XXX - ADD SOUND #if 0 //XXX - ADD SOUND
SND_DeviceManager::Unsubscribe(); SND_DeviceManager::Unsubscribe();
m_audiodevice = 0;
#endif #endif
m_audiodevice = 0;
} }
m_initialized = false; m_initialized = false;

@ -59,6 +59,7 @@ extern "C"
#include "BKE_icons.h" #include "BKE_icons.h"
#include "BKE_node.h" #include "BKE_node.h"
#include "BKE_report.h" #include "BKE_report.h"
#include "BKE_sound.h"
#include "BLI_blenlib.h" #include "BLI_blenlib.h"
#include "DNA_scene_types.h" #include "DNA_scene_types.h"
#include "BLO_readfile.h" #include "BLO_readfile.h"
@ -358,6 +359,8 @@ int main(int argc, char** argv)
quicktime_init(); quicktime_init();
#endif #endif
sound_init();
libtiff_init(); libtiff_init();
// Parse command line options // Parse command line options
@ -818,6 +821,8 @@ int main(int argc, char** argv)
} }
free_nodesystem(); free_nodesystem();
sound_exit();
return error ? -1 : 0; return error ? -1 : 0;
} }