14#ifndef AUDIOLOADREQUEST_H
15#define AUDIOLOADREQUEST_H
36 const std::string &filename,
47 virtual DoneStatus do_task();
51 std::string _filename;
58 static void init_type() {
59 AsyncTask::init_type();
61 AsyncTask::get_class_type());
64 return get_class_type();
66 virtual TypeHandle force_init_type() {init_type();
return get_class_type();}
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
AudioLoadRequest(AudioManager *audio_manager, const std::string &filename, bool positional)
Create a new AudioLoadRequest, and add it to the loader via load_async(), to begin an asynchronous lo...
bool is_ready() const
Returns true if this request has completed, false if it is still pending.
AudioManager * get_audio_manager() const
Returns the AudioManager that will serve this asynchronous AudioLoadRequest.
const std::string & get_filename() const
Returns the filename associated with this asynchronous AudioLoadRequest.
bool get_positional() const
Returns the positional flag associated with this asynchronous AudioLoadRequest.
AudioSound * get_sound() const
Returns the sound that was loaded asynchronously, if any, or nullptr if there was an error.
TypeHandle is the identifier used to differentiate C++ class types.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
void register_type(TypeHandle &type_handle, const std::string &name)
This inline function is just a convenient way to call TypeRegistry::register_type(),...