// Filename: config_audio.cxx
// Created by:  cary (22Sep00)
//
////////////////////////////////////////////////////////////////////
//
// PANDA 3D SOFTWARE
// Copyright (c) 2001, Disney Enterprises, Inc.  All rights reserved
//
// All use of this software is subject to the terms of the Panda 3d
// Software license.  You should have received a copy of this license
// along with this source code; you will also find a current copy of
// the license at http://www.panda3d.org/license.txt .
//
// To contact the maintainers of this program write to
// panda3d@yahoogroups.com .
//
////////////////////////////////////////////////////////////////////

#include "config_audio.h"
#include "audio_gui_functor.h"
#include <dconfig.h>

Configure(config_audio);
NotifyCategoryDef(audio, "");


bool audio_active 
    =config_audio.GetBool("audio-active", true);

float audio_volume 
    =config_audio.GetFloat("audio-volume", 1.0);

bool audio_software_midi 
    =config_audio.GetBool("audio-software-midi", false);

bool audio_play_midi 
    =config_audio.GetBool("audio-play-midi", true);

bool audio_play_wave 
    =config_audio.GetBool("audio-play-wave", true);

bool audio_play_mp3 
    =config_audio.GetBool("audio-play-mp3", true);

int audio_output_rate 
    =config_audio.GetInt("audio-output-rate", 22050);

int audio_output_bits
    =config_audio.GetInt("audio-output-bits", 16);

int audio_output_channels
    =config_audio.GetInt("audio-output-channels", 2);

string* audio_dls_file;

string* audio_library_name;


ConfigureFn(config_audio) {
  AudioGuiFunctor::init_type();

  audio_dls_file = new string(
      config_audio.GetString("audio-dls-file", ""));

  audio_library_name = new string(
      config_audio.GetString("audio-library-name", "miles_audio"));
}



