AudioLoadRequest

from panda3d.core import AudioLoadRequest
class AudioLoadRequest

Bases: AsyncTask

A class object that manages a single asynchronous audio load request. This works in conjunction with the Loader class defined in pgraph, or really with any AsyncTaskManager. Create a new AudioLoadRequest, and add it to the loader via load_async(), to begin an asynchronous load.

Inheritance diagram

Inheritance diagram of AudioLoadRequest

__init__(*args, **kwargs)
getAudioManager()

C++ Interface: get_audio_manager(AudioLoadRequest self)

/**
  • Returns the AudioManager that will serve this asynchronous

  • AudioLoadRequest.

*/

getClassType()

C++ Interface: get_class_type()

getFilename()

C++ Interface: get_filename(AudioLoadRequest self)

/**
  • Returns the filename associated with this asynchronous AudioLoadRequest.

*/

getPositional()

C++ Interface: get_positional(AudioLoadRequest self)

/**
  • Returns the positional flag associated with this asynchronous

  • AudioLoadRequest.

*/

getSound()

C++ Interface: get_sound(AudioLoadRequest self)

/**
  • Returns the sound that was loaded asynchronously, if any, or nullptr if

  • there was an error. It is an error to call this unless done() returns

  • true.

  • @deprecated Use result() instead.

*/

get_audio_manager()

C++ Interface: get_audio_manager(AudioLoadRequest self)

/**
  • Returns the AudioManager that will serve this asynchronous

  • AudioLoadRequest.

*/

get_class_type()

C++ Interface: get_class_type()

get_filename()

C++ Interface: get_filename(AudioLoadRequest self)

/**
  • Returns the filename associated with this asynchronous AudioLoadRequest.

*/

get_positional()

C++ Interface: get_positional(AudioLoadRequest self)

/**
  • Returns the positional flag associated with this asynchronous

  • AudioLoadRequest.

*/

get_sound()

C++ Interface: get_sound(AudioLoadRequest self)

/**
  • Returns the sound that was loaded asynchronously, if any, or nullptr if

  • there was an error. It is an error to call this unless done() returns

  • true.

  • @deprecated Use result() instead.

*/

isReady()

C++ Interface: is_ready(AudioLoadRequest self)

/**
  • Returns true if this request has completed, false if it is still pending.

  • When this returns true, you may retrieve the sound loaded by calling

  • get_sound().

  • Equivalent to req.done() and not req.cancelled().

  • @see done()

*/

is_ready()

C++ Interface: is_ready(AudioLoadRequest self)

/**
  • Returns true if this request has completed, false if it is still pending.

  • When this returns true, you may retrieve the sound loaded by calling

  • get_sound().

  • Equivalent to req.done() and not req.cancelled().

  • @see done()

*/