Main Page   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members  

panda/src/audio/nullAudioManager.h

Go to the documentation of this file.
00001 // Filename: nullAudioManager.h
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 #ifndef __NULL_AUDIO_MANAGER_H__
00021 #define __NULL_AUDIO_MANAGER_H__
00022 
00023 #include "audioManager.h"
00024 #include "nullAudioSound.h"
00025 
00026 class EXPCL_PANDA NullAudioManager : public AudioManager {
00027   // All of these methods are stubbed out to some degree.
00028   // If you're looking for a starting place for a new AudioManager,
00029   // please consider looking at the milesAudioManager.
00030   
00031 public:
00032   NullAudioManager();
00033   virtual ~NullAudioManager();
00034   
00035   virtual bool is_valid();
00036   
00037   virtual PT(AudioSound) get_sound(const string&);
00038   virtual void uncache_sound(const string&);
00039   virtual void clear_cache();
00040   virtual void set_cache_limit(int);
00041   virtual int get_cache_limit();
00042 
00043   virtual void set_volume(float);
00044   virtual float get_volume();
00045   
00046   virtual void set_active(bool);
00047   virtual bool get_active();
00048 };
00049 
00050 #endif /* __NULL_AUDIO_MANAGER_H__ */

Generated on Fri May 2 00:34:29 2003 for Panda by doxygen1.3