21 #if !defined(CPPPARSER) && !defined(LINK_ALL_STATIC) && !defined(BUILDING_OPENAL_AUDIO) 22 #error Buildsystem error: BUILDING_OPENAL_AUDIO not defined 25 ConfigureDef(config_openalAudio);
26 NotifyCategoryDef(openalAudio,
":audio");
28 ConfigureFn(config_openalAudio) {
34 PRC_DESC(
"Specify the OpenAL device string for audio playback (no quotes). If this " 35 "is not specified, the OpenAL default device is used."));
38 (
"openal-buffer-delete-retries", 5,
39 PRC_DESC(
"If deleting a buffer fails due to still being in use, the OpenAL " 40 "sound plugin will wait a moment and retry deletion, with an " 41 "exponentially-increasing delay for each try. This number " 42 "specifies how many repeat tries (not counting the initial try) " 43 "should be made before giving up and raising an error."));
46 (
"openal-buffer-delete-delay", 0.001,
47 PRC_DESC(
"If deleting a buffer fails due to still being in use, the OpenAL " 48 "sound plugin will wait a moment and retry deletion, with an " 49 "exponentially-increasing delay for each try. This number " 50 "specifies how long, in seconds, the OpenAL plugin will wait after " 51 "its first failed try. The second try will be double this " 52 "delay, the third quadruple, and so on."));
63 static bool initialized =
false;
69 OpenALAudioManager::init_type();
70 OpenALAudioSound::init_type();
85 Create_AudioManager_proc *
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
static PandaSystem * get_global_ptr()
Returns the global PandaSystem object.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
AudioManager * Create_OpenALAudioManager()
Factory Function.
This class is used as a namespace to group several global properties of Panda.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
This is a convenience class to specialize ConfigVariable as a floating- point type.
This is a convenience class to specialize ConfigVariable as a string type.
void init_libOpenALAudio()
Initializes the library.
void add_system(const std::string &system)
Intended for use by each subsystem to register itself at startup.
Create_AudioManager_proc * get_audio_manager_func_openal_audio()
This function is called when the dynamic library is loaded; it should return the Create_AudioManager ...
void set_system_tag(const std::string &system, const std::string &tag, const std::string &value)
Intended for use by each subsystem to register its set of capabilities at startup.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
This is a convenience class to specialize ConfigVariable as an integer type.