MovieAudio

from panda3d.core import 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)
__init__(name: str)

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.

property filenameFilename

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

static get(name: Filename)MovieAudio

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

static getClassType()TypeHandle
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.

open()MovieAudioCursor

Open this audio, returning a MovieAudioCursor