0
votes
1answer
101 views

How do I prevent clicking at the end of each sound play in OpenAL?

I have put together a basic sound handler class for use in my game. It uses OpenAL. It's a simple method at the moment to play sounds - here's an extract from a switch block: case "EATEN_PILL": ...
1
vote
1answer
69 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
131 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
438 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
225 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
743 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
329 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 ...