14 #ifdef HAVE_RAD_MSS //[ 25 #if !defined(CPPPARSER) && !defined(LINK_ALL_STATIC) && !defined(BUILDING_MILES_AUDIO) 26 #error Buildsystem error: BUILDING_MILES_AUDIO not defined 29 ConfigureDef(config_milesAudio);
30 NotifyCategoryDef(milesAudio,
":audio");
32 ConfigureFn(config_milesAudio) {
37 (
"audio-force-midi-reset",
true);
40 (
"miles-audio-expand-mp3-threshold", 16384,
41 PRC_DESC(
"This enables a Miles workaround in which small MP3 files are " 42 "expanded in-memory at load time into WAV format, which can " 43 "work around problems with Miles being unable to correctly " 44 "report the length of, or seek within, a variable bit-rate encoded " 45 "MP3 file. Any MP3 file whose length in bytes is less than " 46 "this value will be expanded. This only applies to files " 47 "within the miles-audio-preload-threshold."));
50 (
"miles-audio-preload-threshold", -1,
51 PRC_DESC(
"This should be no smaller " 52 "than miles-audio-expand-mp3-threshold. Files that are smaller " 53 "than this number of bytes will be preloaded and kept " 54 "resident in memory, while files that are this size or larger " 55 "will be streamed from disk. Set this to -1 to preload " 59 (
"miles-audio-panda-threads",
true,
60 PRC_DESC(
"Set this true to service Miles background audio via Panda's " 61 "threading interface, instead of Miles' built-in threading " 62 "interface. This gives Panda more control over the threading, " 63 "and ensures better lock protection within Panda. This has " 64 "no meaning unless Panda is compiled with thread support."));
73 init_libMilesAudio() {
74 static bool initialized =
false;
79 MilesAudioManager::init_type();
80 MilesAudioSound::init_type();
81 MilesAudioSample::init_type();
82 MilesAudioSequence::init_type();
83 MilesAudioStream::init_type();
96 Create_AudioManager_proc *
97 get_audio_manager_func_miles_audio() {
99 return &Create_MilesAudioManager;
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
static PandaSystem * get_global_ptr()
Returns the global PandaSystem object.
This class is used as a namespace to group several global properties of Panda.
This is a convenience class to specialize ConfigVariable as a boolean type.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
void add_system(const std::string &system)
Intended for use by each subsystem to register itself at startup.
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.
This is a convenience class to specialize ConfigVariable as an integer type.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.