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

panda/src/audio/config_audio.cxx

Go to the documentation of this file.
00001 // Filename: config_audio.cxx
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 #include "config_audio.h"
00020 #include <dconfig.h>
00021 
00022 Configure(config_audio);
00023 NotifyCategoryDef(audio, "");
00024 
00025 
00026 bool audio_active 
00027     =config_audio.GetBool("audio-active", true);
00028 
00029 //number of sounds in cache
00030 int audio_cache_limit 
00031     =config_audio.GetInt("audio-cache-limit", 15);  
00032 
00033 float audio_volume 
00034     =config_audio.GetFloat("audio-volume", 1.0f);
00035 
00036 bool audio_software_midi 
00037     =config_audio.GetBool("audio-software-midi", false);
00038 
00039 bool audio_play_midi 
00040     =config_audio.GetBool("audio-play-midi", true);
00041 
00042 bool audio_play_wave 
00043     =config_audio.GetBool("audio-play-wave", true);
00044 
00045 bool audio_play_mp3 
00046     =config_audio.GetBool("audio-play-mp3", true);
00047 
00048 int audio_output_rate 
00049     =config_audio.GetInt("audio-output-rate", 22050);
00050 
00051 int audio_output_bits
00052     =config_audio.GetInt("audio-output-bits", 16);
00053 
00054 int audio_output_channels
00055     =config_audio.GetInt("audio-output-channels", 2);
00056 
00057 string* audio_dls_file;
00058 
00059 string* audio_library_name;
00060 
00061 
00062 ConfigureFn(config_audio) {
00063   audio_dls_file = new string(
00064       config_audio.GetString("audio-dls-file", ""));
00065 
00066   audio_library_name = new string(
00067       config_audio.GetString("audio-library-name", "miles_audio"));
00068 }
00069 
00070 
00071 

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