panda3d.core.MovieAudio

class MovieAudio

Bases: TypedWritableReferenceCount, Namable

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.

Inheritance diagram

Inheritance diagram of MovieAudio

__init__(param0: MovieAudio) → None
__init__(name: str) → None

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.

open() → MovieAudioCursor

Open this audio, returning a MovieAudioCursor

Return type

MovieAudioCursor

static get(name: Filename) → MovieAudio

Obtains a MovieAudio that references a file. Just calls MovieTypeRegistry::make_audio().

Return type

MovieAudio

getFilename() → Filename

Returns the movie’s filename. A movie is not guaranteed to have a filename, if not, then this function returns a null filename.

Return type

Filename

static getClassType() → TypeHandle
Return type

TypeHandle

property filename

Returns the movie’s filename. A movie is not guaranteed to have a filename, if not, then this function returns a null filename.

Return type

Filename