2
votes
1answer
135 views

How can I apply an effect to a sound to simulate hearing it underwater?

I'm using XNA 4.0 and trying to reproduce an "underwater effect" for every sound played. How can I apply an effect to a sound, and what effect should I use to make it sound like as if the player is ...
1
vote
1answer
63 views

XNA soundEffect is null in when loaded in main class and called in another class

I have loaded a sound effect file into the main class in xna, but when I try to run it in another class I am given this error {"Object reference not set to an instance of an object."} I am new ...
0
votes
1answer
128 views

XNA - how to prevent a sound from looping

So in XNA I have this code: Variables: SoundEffect optionSelected; In the LoadContent() method: optionSelected = Content.Load<SoundEffect>("gameSounds\\selectOption"); In the Update() ...
1
vote
1answer
417 views

XNA soundEffectInstance set to loop, does not loop

Using the code below I can play background music, this works. Eventhough I've set 'IsLooped' to 'true', the sound won't loop. What Am I doing wrong? protected override void LoadContent() { ...
0
votes
1answer
210 views

How can I load 24-bit audio as SoundEffect?

When I try to load .wav file I get an error: Audio file *.wav contains 24-bit audio. Only 8-bit and 16-bit audio data is supported. Here is my code: SoundEffect menuSelectionChange = ...
4
votes
1answer
730 views

XNA: Check if the sound is playing

Quick question: I have a SoundEffect instance, and I would like to know if it is playing at the moment or not. But there's neither a method, nor a property that would allow to check it... So, is ...
1
vote
1answer
323 views

Avoiding lag when playing sound for first time using Cue.Play

In my code I'm using SoundBank.GetCue("cuename") and Cue.Play() to play my sounds. On the xbox whenever I first play a cue I get lag of about about one second. How can I avoid this? I'm thinking I ...