00001 // Filename: config_fmodAudio.cxx 00002 // Created by: cort 00003 // 00004 //////////////////////////////////////////////////////////////////// 00005 // 00006 // PANDA 3D SOFTWARE 00007 // Copyright (c) 2001, Disney Enterprises, Inc. All rights reserved 00008 // 00009 // All use of this software is subject to the terms of the Panda 3d 00010 // Software license. You should have received a copy of this license 00011 // along with this source code; you will also find a current copy of 00012 // the license at http://www.panda3d.org/license.txt . 00013 // 00014 // To contact the maintainers of this program write to 00015 // panda3d@yahoogroups.com . 00016 // 00017 //////////////////////////////////////////////////////////////////// 00018 00019 #include "pandabase.h" 00020 #ifdef HAVE_FMOD //[ 00021 00022 #include "config_fmodAudio.h" 00023 #include "fmodAudioManager.h" 00024 #include "fmodAudioSound.h" 00025 #include "dconfig.h" 00026 00027 ConfigureDef(config_fmodAudio); 00028 NotifyCategoryDef(fmodAudio, ":audio"); 00029 00030 ConfigureFn(config_fmodAudio) { 00031 init_libFmodAudio(); 00032 } 00033 00034 //////////////////////////////////////////////////////////////////// 00035 // Function: init_libFmodAudio 00036 // Description: Initializes the library. This must be called at 00037 // least once before any of the functions or classes in 00038 // this library can be used. Normally it will be 00039 // called by the static initializers and need not be 00040 // called explicitly, but special cases exist. 00041 //////////////////////////////////////////////////////////////////// 00042 void 00043 init_libFmodAudio() { 00044 static bool initialized = false; 00045 if (initialized) { 00046 return; 00047 } 00048 00049 initialized = true; 00050 00051 AudioManager::register_AudioManager_creator(Create_AudioManager); 00052 } 00053 00054 #endif //]