00001 // Filename: config_milesAudio.cxx 00002 // Created by: skyler 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_RAD_MSS //[ 00021 00022 #include "config_milesAudio.h" 00023 #include "milesAudioManager.h" 00024 #include "milesAudioSound.h" 00025 #include "dconfig.h" 00026 00027 ConfigureDef(config_milesAudio); 00028 NotifyCategoryDef(milesAudio, ":audio"); 00029 00030 ConfigureFn(config_milesAudio) { 00031 init_libMilesAudio(); 00032 } 00033 00034 bool miles_audio_force_midi_reset = config_milesAudio.GetBool("audio-force-midi-reset", true); 00035 00036 //////////////////////////////////////////////////////////////////// 00037 // Function: init_libMilesAudio 00038 // Description: Initializes the library. This must be called at 00039 // least once before any of the functions or classes in 00040 // this library can be used. Normally it will be 00041 // called by the static initializers and need not be 00042 // called explicitly, but special cases exist. 00043 //////////////////////////////////////////////////////////////////// 00044 void 00045 init_libMilesAudio() { 00046 static bool initialized = false; 00047 if (initialized) { 00048 return; 00049 } 00050 initialized = true; 00051 00052 AudioManager::register_AudioManager_creator(Create_AudioManager); 00053 } 00054 00055 #endif //]