Panda3D
Public Member Functions | Static Public Member Functions | Protected Attributes

MovieAudio Class Reference

A MovieAudio is actually any source that provides a sequence of audio samples. More...

#include "movieAudio.h"

Inheritance diagram for MovieAudio:
TypedWritableReferenceCount Namable TypedWritable ReferenceCount MemoryBase TypedObject MemoryBase MemoryBase MicrophoneAudio UserDataAudio

List of all members.

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 Filenameget_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

Detailed Description

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.


Constructor & Destructor Documentation

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.


Member Function Documentation

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.


The documentation for this class was generated from the following files:
 All Classes Functions Variables Enumerations