Panda3D
|
A MovieAudio is actually any source that provides a sequence of audio samples. More...
#include "movieAudio.h"
Public Member Functions | |
MovieAudio (const string &name="Blank Audio") | |
This constructor returns a null audio stream --- a stream of total silence, at 8000 samples per second. | |
virtual TypeHandle | force_init_type () |
const Filename & | get_filename () const |
Returns the movie's filename. | |
virtual TypeHandle | get_type () const |
virtual | PT (MovieAudioCursor) open() |
Static Public Member Functions | |
static TypeHandle | get_class_type () |
static void | init_type () |
static | PT (MovieAudio) get(const Filename &name) |
Protected Attributes | |
Filename | _filename |
A MovieAudio is actually any source that provides a sequence of audio samples.
That could include an AVI file, a microphone, or an internet TV station.
The difference between a MovieAudio and a MovieAudioCursor is like the difference between a filename and a file handle. The MovieAudio just indicates a particular movie. The MovieAudioCursor is what allows access.
Definition at line 49 of file movieAudio.h.
MovieAudio::MovieAudio | ( | const string & | name = "Blank Audio" | ) |
This constructor returns a null audio stream --- a stream of total silence, at 8000 samples per second.
To get more interesting audio, you need to construct a subclass of this class.
Definition at line 30 of file movieAudio.cxx.
const Filename & MovieAudio::get_filename | ( | ) | const [inline] |
Returns the movie's filename.
A movie is not guaranteed to have a filename, if not, then this function returns a null filename.
Definition at line 23 of file movieAudio.I.