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

panda/src/audio/config_audio.h

Go to the documentation of this file.
00001 // Filename: config_audio.h
00002 // Created by:  cary (22Sep00)
00003 //
00004 ////////////////////////////////////////////////////////////////////
00005 //
00006 // PANDA 3D SOFTWARE
00007 // Copyright (c) 2001, Disney Enterprises, Inc.  All rights reserved
00008 //
00009 // All use of this software is subject to the terms of the Panda 3d
00010 // Software license.  You should have received a copy of this license
00011 // along with this source code; you will also find a current copy of
00012 // the license at http://www.panda3d.org/license.txt .
00013 //
00014 // To contact the maintainers of this program write to
00015 // panda3d@yahoogroups.com .
00016 //
00017 ////////////////////////////////////////////////////////////////////
00018 
00019 #ifndef __CONFIG_AUDIO_H__
00020 #define __CONFIG_AUDIO_H__
00021 
00022 #include <pandabase.h>
00023 #include <notifyCategoryProxy.h>
00024 
00025 #ifdef WIN32_VC
00026 #pragma warning (disable : 4231)
00027 #endif
00028 
00029 NotifyCategoryDecl(audio, EXPCL_PANDA, EXPTP_PANDA);
00030 
00031 extern EXPCL_PANDA bool audio_active;
00032 extern EXPCL_PANDA int audio_cache_limit;
00033 extern EXPCL_PANDA float audio_volume;
00034 
00035 extern EXPCL_PANDA bool audio_software_midi;
00036 extern EXPCL_PANDA string* audio_dls_file;
00037 
00038 extern EXPCL_PANDA bool audio_play_midi;
00039 extern EXPCL_PANDA bool audio_play_wave;
00040 extern EXPCL_PANDA bool audio_play_mp3;
00041 
00042 extern EXPCL_PANDA int audio_output_rate;
00043 extern EXPCL_PANDA int audio_output_bits;
00044 extern EXPCL_PANDA int audio_output_channels;
00045 
00046 extern EXPCL_PANDA string* audio_library_name;
00047 
00048 #ifndef NDEBUG //[
00049   // Non-release build:
00050   #define audio_debug(msg) \
00051   if (audio_cat.is_debug()) { \
00052     audio_cat->debug() << msg << endl; \
00053   } else {}
00054 
00055   #define audio_info(msg) \
00056     audio_cat->info() << msg << endl
00057 
00058   #define audio_warning(msg) \
00059     audio_cat->warning() << msg << endl
00060 #else //][
00061   // Release build:
00062   #define audio_debug(msg) ((void)0)
00063   #define audio_info(msg) ((void)0)
00064   #define audio_warning(msg) ((void)0)
00065 #endif //]
00066 
00067 #define audio_error(msg) \
00068   audio_cat->error() << msg << endl
00069 
00070 #endif /* __CONFIG_AUDIO_H__ */

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