14 #ifndef WAVAUDIOCURSOR_H 15 #define WAVAUDIOCURSOR_H 31 virtual void seek(
double offset);
46 F_extensible = 0xfffe,
49 std::istream *_stream;
55 int _bytes_per_sample;
57 std::streampos _data_start;
58 std::streampos _data_pos;
65 static void init_type() {
66 MovieAudioCursor::init_type();
68 MovieAudioCursor::get_class_type());
71 return get_class_type();
73 virtual TypeHandle force_init_type() {init_type();
return get_class_type();}
81 #endif // WAVAUDIOCURSOR_H 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.
Used for reading PCM .wav files.
A MovieAudio is actually any source that provides a sequence of audio samples.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
A native PCM .wav loader.
TypeHandle is the identifier used to differentiate C++ class types.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
A class to read sequential binary data directly from an istream.
virtual void seek(double offset)
Skips to the specified offset within the file.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.