Panda3D
 All Classes Functions Variables Enumerations
audioLoadRequest.cxx
00001 // Filename: audioLoadRequest.cxx
00002 // Created by:  drose (29Aug06)
00003 //
00004 ////////////////////////////////////////////////////////////////////
00005 //
00006 // PANDA 3D SOFTWARE
00007 // Copyright (c) Carnegie Mellon University.  All rights reserved.
00008 //
00009 // All use of this software is subject to the terms of the revised BSD
00010 // license.  You should have received a copy of this license along
00011 // with this source code in a file named "LICENSE."
00012 //
00013 ////////////////////////////////////////////////////////////////////
00014 
00015 #include "audioLoadRequest.h"
00016 #include "audioManager.h"
00017 
00018 TypeHandle AudioLoadRequest::_type_handle;
00019 
00020 ////////////////////////////////////////////////////////////////////
00021 //     Function: AudioLoadRequest::do_task
00022 //       Access: Protected, Virtual
00023 //  Description: Performs the task: that is, loads the one sound file.
00024 ////////////////////////////////////////////////////////////////////
00025 AsyncTask::DoneStatus AudioLoadRequest::
00026 do_task() {
00027   _sound = _audio_manager->get_sound(_filename, _positional);
00028   _is_ready = true;
00029 
00030   // Don't continue the task; we're done.
00031   return DS_done;
00032 }
 All Classes Functions Variables Enumerations