15 #ifndef USERDATAAUDIOCURSOR_H
16 #define USERDATAAUDIOCURSOR_H
18 #include "pandabase.h"
20 #include "pointerTo.h"
21 #include "pointerToArray.h"
22 #include "movieAudioCursor.h"
39 virtual int ready()
const;
40 virtual void seek(
double offset);
46 static void init_type() {
47 MovieAudioCursor::init_type();
48 register_type(_type_handle,
"UserDataAudioCursor",
49 MovieAudioCursor::get_class_type());
52 return get_class_type();
54 virtual TypeHandle force_init_type() {init_type();
return get_class_type();}
60 #include "userDataAudioCursor.I"
61 #include "userDataAudio.h"
void read_samples(int n, Datagram *dg)
Read audio samples from the stream into a Datagram.
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.
A UserDataAudio is a way for the user to manually supply raw audio samples.
TypeHandle is the identifier used to differentiate C++ class types.
virtual void seek(double offset)
Skips to the specified offset within the file.
virtual int ready() const
Returns the number of audio samples that are ready to read.