00001 // Filename: nullAudioSound.cxx 00002 // Created by: skyler (June 6, 2001) 00003 // Prior system by: cary 00004 // 00005 //////////////////////////////////////////////////////////////////// 00006 // 00007 // PANDA 3D SOFTWARE 00008 // Copyright (c) 2001, Disney Enterprises, Inc. All rights reserved 00009 // 00010 // All use of this software is subject to the terms of the Panda 3d 00011 // Software license. You should have received a copy of this license 00012 // along with this source code; you will also find a current copy of 00013 // the license at http://www.panda3d.org/license.txt . 00014 // 00015 // To contact the maintainers of this program write to 00016 // panda3d@yahoogroups.com . 00017 // 00018 //////////////////////////////////////////////////////////////////// 00019 00020 #include "nullAudioSound.h" 00021 00022 00023 NullAudioSound::NullAudioSound() { 00024 // Intentionally blank. 00025 } 00026 00027 NullAudioSound::~NullAudioSound() { 00028 // Intentionally blank. 00029 } 00030 00031 void NullAudioSound::play() { 00032 // Intentionally blank. 00033 } 00034 00035 void NullAudioSound::stop() { 00036 // Intentionally blank. 00037 } 00038 00039 void NullAudioSound::set_loop(bool) { 00040 // Intentionally blank. 00041 } 00042 00043 bool NullAudioSound::get_loop() const { 00044 return false; 00045 } 00046 00047 void NullAudioSound::set_loop_count(unsigned long) { 00048 // Intentionally blank. 00049 } 00050 00051 unsigned long NullAudioSound::get_loop_count() const { 00052 return 0; 00053 } 00054 00055 void NullAudioSound::set_time(float) { 00056 // Intentionally blank. 00057 } 00058 00059 float NullAudioSound::get_time() const { 00060 return 0; 00061 } 00062 00063 void NullAudioSound::set_volume(float) { 00064 // Intentionally blank. 00065 } 00066 00067 float NullAudioSound::get_volume() const { 00068 return 0; 00069 } 00070 00071 void NullAudioSound::set_balance(float) { 00072 // Intentionally blank. 00073 } 00074 00075 float NullAudioSound::get_balance() const { 00076 return 0; 00077 } 00078 00079 void NullAudioSound::set_active(bool) { 00080 // Intentionally blank. 00081 } 00082 00083 bool NullAudioSound::get_active() const { 00084 return false; 00085 } 00086 00087 const string& NullAudioSound::get_name() const { 00088 static const string blank=""; 00089 return blank; 00090 } 00091 00092 float NullAudioSound::length() const { 00093 return 0; 00094 } 00095 00096 AudioSound::SoundStatus NullAudioSound::status() const { 00097 return AudioSound::READY; 00098 }