Panda3D
panda
src
audio
audioLoadRequest.cxx
1
// Filename: audioLoadRequest.cxx
2
// Created by: drose (29Aug06)
3
//
4
////////////////////////////////////////////////////////////////////
5
//
6
// PANDA 3D SOFTWARE
7
// Copyright (c) Carnegie Mellon University. All rights reserved.
8
//
9
// All use of this software is subject to the terms of the revised BSD
10
// license. You should have received a copy of this license along
11
// with this source code in a file named "LICENSE."
12
//
13
////////////////////////////////////////////////////////////////////
14
15
#include "audioLoadRequest.h"
16
#include "audioManager.h"
17
18
TypeHandle
AudioLoadRequest::_type_handle;
19
20
////////////////////////////////////////////////////////////////////
21
// Function: AudioLoadRequest::do_task
22
// Access: Protected, Virtual
23
// Description: Performs the task: that is, loads the one sound file.
24
////////////////////////////////////////////////////////////////////
25
AsyncTask::DoneStatus AudioLoadRequest::
26
do_task() {
27
_sound = _audio_manager->get_sound(_filename, _positional);
28
_is_ready =
true
;
29
30
// Don't continue the task; we're done.
31
return
DS_done;
32
}
TypeHandle
TypeHandle is the identifier used to differentiate C++ class types.
Definition:
typeHandle.h:85
Generated on Wed May 17 2017 23:39:45 for Panda3D by
1.8.13