Пример #1
0
 /// <summary>
 /// Initializes a new XACTSound
 /// </summary>
 /// <param name="xactBase">The XACTBase to get the sound from</param>
 /// <param name="soundName">The name of the sound to use</param>
 public XACTSound(XACTBase xactBase, string soundName)
 {
     //Gets the cue from the XACT file
     sound = xactBase.soundBank.GetCue(soundName);
 }
Пример #2
0
 /// <summary>
 /// Initializes a new XACTSound
 /// </summary>
 /// <param name="xactBase">The XACTBase to get the sound from</param>
 /// <param name="soundName">The name of the sound to use</param>
 public XACTSound(XACTBase xactBase, string soundName)
 {
     //Gets the cue from the XACT file
     sound = xactBase.soundBank.GetCue(soundName);
 }