21 _audio_manager(audio_manager),
23 _positional(positional)
33 return _audio_manager;
73 nassertr_always(
done(),
nullptr);
AudioManager * get_audio_manager() const
Returns the AudioManager that will serve this asynchronous AudioLoadRequest.
bool is_ready() const
Returns true if this request has completed, false if it is still pending.
bool done() const
Returns true if the future is done or has been cancelled.
static Integer get(const Integer &var)
Atomically retrieves the snapshot value of the indicated variable.
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...
AudioSound * get_sound() const
Returns the sound that was loaded asynchronously, if any, or nullptr if there was an error.
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.