Panda3D
audioLoadRequest.cxx
Go to the documentation of this file.
1 /**
2  * PANDA 3D SOFTWARE
3  * Copyright (c) Carnegie Mellon University. All rights reserved.
4  *
5  * All use of this software is subject to the terms of the revised BSD
6  * license. You should have received a copy of this license along
7  * with this source code in a file named "LICENSE."
8  *
9  * @file audioLoadRequest.cxx
10  * @author drose
11  * @date 2006-08-29
12  */
13 
14 #include "audioLoadRequest.h"
15 #include "audioManager.h"
16 
17 TypeHandle AudioLoadRequest::_type_handle;
18 
19 /**
20  * Performs the task: that is, loads the one sound file.
21  */
22 AsyncTask::DoneStatus AudioLoadRequest::
23 do_task() {
24  set_result(_audio_manager->get_sound(_filename, _positional));
25 
26  // Don't continue the task; we're done.
27  return DS_done;
28 }
void set_result(std::nullptr_t)
Sets this future's result.
Definition: asyncFuture.I:92
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
TypeHandle is the identifier used to differentiate C++ class types.
Definition: typeHandle.h:81
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.