libfmod_audio -> libp3fmod_audio, libopenal_audio -> libp3openal_audio

This commit is contained in:
David Rose 2009-10-11 22:22:59 +00:00
parent c469dda2c7
commit 787bfc5f94
4 changed files with 16 additions and 18 deletions

View File

@ -60,7 +60,7 @@ PT(AudioManager) AudioManager::create_AudioManager() {
audio_debug(" dl_name=\""<<dl_name<<"\"");
void *handle = load_dso(get_plugin_path().get_value(), dl_name);
if (handle == (void *)NULL) {
audio_error(" LoadLibrary() failed, will use NullAudioManager");
audio_error(" load_dso(" << dl_name << ") failed, will use NullAudioManager");
audio_error(" "<<load_dso_error());
nassertr(_create_AudioManager == create_NullAudioManager, NULL);
} else {

View File

@ -32,19 +32,7 @@ ConfigVariableInt audio_cache_limit
PRC_DESC("The number of sounds in the cache."));
ConfigVariableString audio_library_name
("audio-library-name",
#if defined(HAVE_RAD_MSS)
"miles_audio"
#elif defined(HAVE_FMODEX)
"fmodex_audio"
#elif defined(HAVE_FMOD)
"fmod_audio"
#elif defined(HAVE_OPENAL)
"openal_audio"
#else
""
#endif
);
("audio-library-name", "null");
ConfigVariableDouble audio_volume
("audio-volume", 1.0f);

View File

@ -30,14 +30,14 @@
#end lib_target
#begin lib_target
#define TARGET fmod_audio
#define TARGET p3fmod_audio
#define BUILD_TARGET $[HAVE_FMODEX]
#define USE_PACKAGES fmodex
#define BUILDING_DLL BUILDING_FMOD_AUDIO
#define LOCAL_LIBS audio event
#define WIN_SYS_LIBS $[WIN_SYS_LIBS] user32.lib advapi32.lib winmm.lib
#define COMBINED_SOURCES $[TARGET]_composite1.cxx
#define COMBINED_SOURCES fmod_audio_composite1.cxx
#define SOURCES \
config_fmodAudio.h \
@ -50,14 +50,14 @@
#end lib_target
#begin lib_target
#define TARGET openal_audio
#define TARGET p3openal_audio
#define BUILD_TARGET $[HAVE_OPENAL]
#define USE_PACKAGES openal
#define BUILDING_DLL BUILDING_OPENAL_AUDIO
#define LOCAL_LIBS audio event
#define WIN_SYS_LIBS $[WIN_SYS_LIBS] user32.lib advapi32.lib winmm.lib
#define COMBINED_SOURCES $[TARGET]_composite1.cxx
#define COMBINED_SOURCES openal_audio_composite1.cxx
#define SOURCES \
config_openalAudio.h \

View File

@ -34,6 +34,16 @@ aux-display pandadx8
aux-display tinydisplay
#endif
# Define an appropriate default audio library.
#if $[HAVE_RAD_MSS]
audio-library-name miles_audio
#elif $[HAVE_FMODEX]
audio-library-name p3fmod_audio
#elif $[HAVE_OPENAL]
audio-library-name p3openal_audio
#endif
# The egg loader is handy to have available by default. This allows
# clients to load egg files. (The bam loader is built-in so bam files
# are always loadable).