14 #ifndef USERDATAAUDIOCURSOR_H 15 #define USERDATAAUDIOCURSOR_H 37 virtual int ready()
const;
38 virtual void seek(
double offset);
44 static void init_type() {
45 MovieAudioCursor::init_type();
47 MovieAudioCursor::get_class_type());
50 return get_class_type();
52 virtual TypeHandle force_init_type() {init_type();
return get_class_type();}
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
void read_samples(int n, Datagram *dg)
Read audio samples from the stream into a Datagram.
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.
A UserDataAudioCursor is a means to manually supply a sequence of raw audio samples.
A MovieAudio is actually any source that provides a sequence of audio samples.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
A UserDataAudio is a way for the user to manually supply raw audio samples.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
TypeHandle is the identifier used to differentiate C++ class types.
virtual int ready() const
Returns the number of audio samples that are ready to read.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
virtual void seek(double offset)
Skips to the specified offset within the file.