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"
FlacAudioCursor(FlacAudio *src, std::istream *stream)
Reads the .wav header from the indicated stream.
MovieAudioCursor(MovieAudio *src)
This constructor returns a null audio stream — a stream of total silence, at 8000 samples per second.
virtual void seek(double offset)
Skips to the specified offset within the file.
void read_samples(int n, Datagram *dg)
Read audio samples from the stream into a Datagram.
TypeHandle is the identifier used to differentiate C++ class types.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
void register_type(TypeHandle &type_handle, const std::string &name)
This inline function is just a convenient way to call TypeRegistry::register_type(),...