15 #ifndef WAVAUDIOCURSOR_H 16 #define WAVAUDIOCURSOR_H 18 #include "pandabase.h" 19 #include "movieAudioCursor.h" 20 #include "streamReader.h" 33 virtual void seek(
double offset);
48 F_extensible = 0xfffe,
57 int _bytes_per_sample;
59 streampos _data_start;
67 static void init_type() {
68 MovieAudioCursor::init_type();
69 register_type(_type_handle,
"WavAudioCursor",
70 MovieAudioCursor::get_class_type());
73 return get_class_type();
75 virtual TypeHandle force_init_type() {init_type();
return get_class_type();}
81 #include "wavAudioCursor.I" 83 #endif // WAVAUDIOCURSOR_H void read_samples(int n, Datagram *dg)
Read audio samples from the stream into a Datagram.
Used for reading PCM .wav files.
A MovieAudio is actually any source that provides a sequence of audio samples.
A native PCM .wav loader.
TypeHandle is the identifier used to differentiate C++ class types.
A class to read sequential binary data directly from an istream.
virtual void seek(double offset)
Skips to the specified offset within the file.