//---------------------------------------------------------------------------------------------------------------------------------------------------
//
// Copyright (C)2007 DarkWynter Studios. All rights reserved.
//
//---------------------------------------------------------------------------------------------------------------------------------------------------
// {Contact : darkwynter.com for licensing information
//---------------------------------------------------------------------------------------------------------------------------------------------------
namespace DarkWynter.Engine.Audio
{
using System;
using System.Collections.Generic;
using System.Diagnostics;
using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Audio;
using Microsoft.Xna.Framework.Content;
using Microsoft.Xna.Framework.Graphics;
using Microsoft.Xna.Framework.Input;
using Microsoft.Xna.Framework.Storage;
using System.Xml;
///
/// Contains the neccessary information to us a 3D sound cue.
///
public class Cue3D
{
///
/// Name of the audio track.
/// This name corresponds with the name given it in XACT.
///
public string name;
///
/// Cue contatining sound used in 3D audio.
///
public Cue cue;
///
/// A sound generator.
///
public AudioEmitter emitter;
///
/// A sound receiver.
///
public AudioListener listener;
///
/// Delay before playing another terrainMod cue.
/// Used to stop too many sounds from being played at once.
///
public Stopwatch terrainModSoundTimer;
public Cue3D(string cueName)
{
name = cueName;
cue = Audio.soundBank.GetCue(name);
terrainModSoundTimer = new Stopwatch();
terrainModSoundTimer.Start();
listener = new AudioListener();
emitter = new AudioEmitter();
}
}
}