Author Topic: Sound crash while loading game -- while chatting on teamspeak at the same time.  (Read 1926 times)

Offline Sizzle

  • Full Member Mark II
  • ***
  • Posts: 189
Title says it ;)

Here's the stack trace:

6/5/2010 7:07:32 PM (3.1.6.2)
-----------------------------------CurrentDomain_UnhandledException-----------------------------------SlimDX.DirectSound.DirectSoundException: Unknown: n/a (-2004287465)
   at SlimDX.Result.Throw[T](Object dataKey, Object dataValue)
   at SlimDX.Result.Record[T](Int32 hr, Boolean failed, Object dataKey, Object dataValue)
   at SlimDX.DirectSound.SoundBuffer.Play(Int32 priority, PlayFlags flags)
   at AIWar.GameMusic.DataTransferActivity() in C:\vcprojs\AIWar\DX\GameMusic.cs:line 215
   at System.Threading.ThreadHelper.ThreadStart_Context(Object state)
   at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
   at System.Threading.ThreadHelper.ThreadStart()
6/5/2010 7:07:35 PM (3.1.6.2)
-----------------------------------Application_ThreadException-----------------------------------SlimDX.DirectSound.DirectSoundException: Unknown: n/a (-2004287465)
   at SlimDX.Result.Throw[T](Object dataKey, Object dataValue)
   at SlimDX.Result.Record[T](Int32 hr, Boolean failed, Object dataKey, Object dataValue)
   at SlimDX.DirectSound.SoundBuffer.Play(Int32 priority, PlayFlags flags)
   at AIWar.GameSound.Play(SoundType Type) in C:\vcprojs\AIWar\DX\GameSound.cs:line 97
   at AIWar.GameSoundGroup.Play(SoundType Type) in C:\vcprojs\AIWar\DX\GameSoundGroup.cs:line 145
   at AIWar.Game.PlaySound(String Filename, SoundType Type) in C:\vcprojs\AIWar\GameFormParts\Startup.cs:line 2875
   at AIWar.Windows.StartGame.btnCheckForUpdates_Click(Object sender, EventArgs e) in C:\vcprojs\AIWar\Windows\StartGame.cs:line 236
   at System.Windows.Forms.Control.OnClick(EventArgs e)
   at System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)
   at System.Windows.Forms.Control.WndProc(Message& m)
   at System.Windows.Forms.Label.WndProc(Message& m)
   at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
   at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
   at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
6/5/2010 7:54:58 PM (3.1.6.4)
-----------------------------------CurrentDomain_UnhandledException-----------------------------------SlimDX.DirectSound.DirectSoundException: Unknown: n/a (-2004287465)
   at SlimDX.Result.Throw[T](Object dataKey, Object dataValue)
   at SlimDX.Result.Record[T](Int32 hr, Boolean failed, Object dataKey, Object dataValue)
   at SlimDX.DirectSound.SoundBuffer.Play(Int32 priority, PlayFlags flags)
   at AIWar.GameMusic.DataTransferActivity() in C:\vcprojs\AIWar\DX\GameMusic.cs:line 215
   at System.Threading.ThreadHelper.ThreadStart_Context(Object state)
   at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
   at System.Threading.ThreadHelper.ThreadStart()

Offline x4000

  • Chris McElligott Park, Arcen Founder and Lead Dev
  • Arcen Staff
  • Zenith Council Member Mark III
  • *****
  • Posts: 31,651
Hmm, I come up with very little when I google that directsound error, unfortunately.  But given that this is some sort of internal error in directsound (it's below the level of AI War), there's not a whole lot I can do, even more unfortunately. 

It's possible that your directsound is a bit out of date or has something slightly messed up with it, or it's possible that teamspeak was momentarily exclusively hogging sound output for some reason, or something along those lines.  But I've definitely used teamspeak and similar with the game, and normally this isn't a problem; you might try refreshing with the latest DirectX 9.0c install, not sure.
Have ideas or bug reports for one of our games?  Mantis for Suggestions and Bug Reports. Thanks for helping to make our games better!