26 #define movies_debug(msg) \
27 if (movies_cat.is_debug()) { \
28 movies_cat->debug() << msg << std::endl; \
32 #define movies_debug(msg) ((void)0);
44class EXPCL_PANDA_MOVIES
MovieAudio :
public TypedWritableReferenceCount,
public Namable {
46 explicit MovieAudio(
const std::string &name =
"Blank Audio");
61 static void init_type() {
62 TypedWritableReferenceCount::init_type();
64 TypedWritableReferenceCount::get_class_type());
66 virtual TypeHandle get_type()
const {
67 return get_class_type();
69 virtual TypeHandle force_init_type() {init_type();
return get_class_type();}
72 static TypeHandle _type_handle;
The name of a file, such as a texture file or an Egg file.
A MovieAudio is actually any source that provides a sequence of audio samples.
MovieAudio(const std::string &name="Blank Audio")
This constructor returns a null audio stream — a stream of total silence, at 8000 samples per second.
get_filename
Returns the movie's filename.
TypeHandle is the identifier used to differentiate C++ class types.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
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 register_type(TypeHandle &type_handle, const std::string &name)
This inline function is just a convenient way to call TypeRegistry::register_type(),...
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.