14 #ifndef OPUSAUDIOCURSOR_H 15 #define OPUSAUDIOCURSOR_H 24 typedef struct OggOpusFile OggOpusFile;
37 explicit OpusAudioCursor(OpusAudio *src, std::istream *stream);
38 virtual ~OpusAudioCursor();
39 virtual void seek(
double offset);
52 int _bytes_per_sample;
55 std::streampos _data_start;
56 std::streampos _data_pos;
63 static void init_type() {
64 MovieAudioCursor::init_type();
66 MovieAudioCursor::get_class_type());
69 return get_class_type();
71 virtual TypeHandle force_init_type() {init_type();
return get_class_type();}
81 #endif // OPUSAUDIOCURSOR_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.
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.
TypeHandle is the identifier used to differentiate C++ class types.
virtual void seek(double offset)
Skips to the specified offset within the file.