14 #ifndef FLACAUDIOCURSOR_H 15 #define FLACAUDIOCURSOR_H 20 #define DR_FLAC_NO_STDIO 37 virtual void seek(
double offset);
46 std::istream *_stream;
52 static void init_type() {
53 MovieAudioCursor::init_type();
55 MovieAudioCursor::get_class_type());
58 return get_class_type();
60 virtual TypeHandle force_init_type() {init_type();
return get_class_type();}
66 #include "flacAudioCursor.I" 68 #endif // FLACAUDIOCURSOR_H Implements decoding of FLAC audio files.
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.
TypeHandle is the identifier used to differentiate C++ class types.
virtual void seek(double offset)
Skips to the specified offset within the file.