My game is very simple and usually runs at 60 fps, however calling SoundBank.GetCue() (not cue.Play() ) for a moment causes my game to stall. This happens when I'm running the game on the 360 launched by from express, if I launch it directly from the 360 the frame rate doesnt drop but I get a lot of crackling on the audio.
Can anyone help?
public static void Play(string name)
{
if (BuildConstants.SOUND_ON && soundbank != null)
{
Cue cue = soundbank.GetCue(name);
if (m_cueHashset.ContainsKey(name))
{
m_cueHashset.Remove(name);
}
m_cueHashset.Add(name, cue);
cue.Play();
}
}