Panda3D

nullAudioSound.cxx

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) Carnegie Mellon University.  All rights reserved.
00009 //
00010 // All use of this software is subject to the terms of the revised BSD
00011 // license.  You should have received a copy of this license along
00012 // with this source code in a file named "LICENSE."
00013 //
00014 ////////////////////////////////////////////////////////////////////
00015 
00016 #include "nullAudioSound.h"
00017 
00018 TypeHandle NullAudioSound::_type_handle;
00019 
00020 namespace {
00021   static const string blank="";
00022   //  static PN_stdfloat no_attributes [] = {0.0f,0.0f,0.0f, 0.0f,0.0f,0.0f};
00023 }
00024 
00025 ////////////////////////////////////////////////////////////////////
00026 //     Function: 
00027 //       Access: 
00028 //  Description: All of these functions are just stubs.
00029 ////////////////////////////////////////////////////////////////////
00030 NullAudioSound::NullAudioSound() {
00031   // Intentionally blank.
00032 }
00033 
00034 NullAudioSound::~NullAudioSound() {
00035   // Intentionally blank.
00036 }
00037   
00038 void NullAudioSound::play() {
00039   // Intentionally blank.
00040 }
00041 
00042 void NullAudioSound::stop() {
00043   // Intentionally blank.
00044 }
00045   
00046 void NullAudioSound::set_loop(bool) {
00047   // Intentionally blank.
00048 }
00049 
00050 bool NullAudioSound::get_loop() const {
00051   return false; 
00052 }
00053   
00054 void NullAudioSound::set_loop_count(unsigned long) {
00055   // Intentionally blank.
00056 }
00057 
00058 unsigned long NullAudioSound::get_loop_count() const {
00059   return 0; 
00060 }
00061   
00062 void NullAudioSound::set_time(PN_stdfloat) {
00063   // Intentionally blank.
00064 }
00065 
00066 PN_stdfloat NullAudioSound::get_time() const {
00067   return 0; 
00068 }
00069 
00070 void NullAudioSound::set_volume(PN_stdfloat) {
00071   // Intentionally blank.
00072 }
00073 
00074 PN_stdfloat NullAudioSound::get_volume() const {
00075   return 0; 
00076 }
00077 
00078 void NullAudioSound::set_balance(PN_stdfloat) {
00079   // Intentionally blank.
00080 }
00081 
00082 PN_stdfloat NullAudioSound::get_balance() const {
00083   return 0; 
00084 }
00085 
00086 void NullAudioSound::set_play_rate(PN_stdfloat) {
00087   // Intentionally blank.
00088 }
00089 
00090 PN_stdfloat NullAudioSound::get_play_rate() const {
00091   return 0; 
00092 }
00093 
00094 void NullAudioSound::set_active(bool) {
00095   // Intentionally blank.
00096 }
00097 
00098 bool NullAudioSound::get_active() const {
00099   return false; 
00100 }
00101 
00102 void NullAudioSound::set_finished_event(const string& event) {
00103   // Intentionally blank.
00104 }
00105 
00106 const string& NullAudioSound::get_finished_event() const {
00107   return blank;
00108 }
00109 
00110 const string& NullAudioSound::get_name() const {
00111   return blank;
00112 }
00113 
00114 PN_stdfloat NullAudioSound::length() const {
00115   return 0;
00116 }
00117 
00118 void NullAudioSound::set_3d_attributes(PN_stdfloat px, PN_stdfloat py, PN_stdfloat pz, PN_stdfloat vx, PN_stdfloat vy, PN_stdfloat vz) {
00119   // Intentionally blank.
00120 }
00121 
00122 void NullAudioSound::get_3d_attributes(PN_stdfloat *px, PN_stdfloat *py, PN_stdfloat *pz, PN_stdfloat *vx, PN_stdfloat *vy, PN_stdfloat *vz) {
00123   // Intentionally blank.
00124 }
00125 
00126 void NullAudioSound::set_3d_min_distance(PN_stdfloat dist) {
00127   // Intentionally blank.
00128 }
00129 
00130 PN_stdfloat NullAudioSound::get_3d_min_distance() const {
00131   // Intentionally blank.
00132   return 0.0f;
00133 }
00134 
00135 void NullAudioSound::set_3d_max_distance(PN_stdfloat dist) {
00136   // Intentionally blank.
00137 }
00138 
00139 PN_stdfloat NullAudioSound::get_3d_max_distance() const {
00140   // Intentionally blank.
00141   return 0.0f;
00142 }
00143 
00144 AudioSound::SoundStatus NullAudioSound::status() const {
00145   return AudioSound::READY; 
00146 }
 All Classes Functions Variables Enumerations