33 lines
1.1 KiB
C++
33 lines
1.1 KiB
C++
// Filename: audioLoadRequest.cxx
|
|
// Created by: drose (29Aug06)
|
|
//
|
|
////////////////////////////////////////////////////////////////////
|
|
//
|
|
// PANDA 3D SOFTWARE
|
|
// Copyright (c) Carnegie Mellon University. All rights reserved.
|
|
//
|
|
// All use of this software is subject to the terms of the revised BSD
|
|
// license. You should have received a copy of this license along
|
|
// with this source code in a file named "LICENSE."
|
|
//
|
|
////////////////////////////////////////////////////////////////////
|
|
|
|
#include "audioLoadRequest.h"
|
|
#include "audioManager.h"
|
|
|
|
TypeHandle AudioLoadRequest::_type_handle;
|
|
|
|
////////////////////////////////////////////////////////////////////
|
|
// Function: AudioLoadRequest::do_task
|
|
// Access: Protected, Virtual
|
|
// Description: Performs the task: that is, loads the one sound file.
|
|
////////////////////////////////////////////////////////////////////
|
|
AsyncTask::DoneStatus AudioLoadRequest::
|
|
do_task() {
|
|
_sound = _audio_manager->get_sound(_filename, _positional);
|
|
_is_ready = true;
|
|
|
|
// Don't continue the task; we're done.
|
|
return DS_done;
|
|
}
|