≡
Products
▼
Support
▼
Company
▼
Forum
Ambiera Forum
Discussions, Help and Support.
Create a new account
,
Search
, or Login:
Create reply in
SEHException was unhandled
Posted by:
(you are not logged in)
Enter the missing letter in: "Interna?ional"
(you are not logged in)
Text:
[quote][b][/b] wrote: I am still trying to see if there is something that I can do that will reliably cause it to happen, but have had no luck so far. I am not doing anything too fancy with irrKlang (v 1.4 - .Net 4). It is a small game that has a static class with an ISoundSource for each game sound. [code]public static class Sounds { public static ISoundSource Spawn; public static ISoundSource Jump; public static ISoundSource DoubleJump; }[/code] When the game starts, all of the ISoundSources get initialized from .wav files. [code]Sounds.Spawn = AudioManager.GetSoundSourceFromFile("spawn.wav"); Sounds.Jump = AudioManager.GetSoundSourceFromFile("jump.wav"); Sounds.DoubleJump = AudioManager.GetSoundSourceFromFile("doubleJump.wav");[/code] [code]public static ISoundSource GetSoundSourceFromFile(string path) { return engine.AddSoundSourceFromFile("Content\\sounds\\" + path); }[/code] I have a playerstate machine that calls certain sounds by passing in an ISoundSource. [code]public void JumpStart() { Velocity.Y = -JumpImpulse; animationManager.Trigger("jump"); AudioManager.PlaySound(Sounds.Jump); }[/code] [code]public static ISound PlaySound(ISoundSource soundSource, bool loop = false) { return engine.Play2D(soundSource, loop, false, false); //This is where the SEHException occurs }[/code] When it crashes, it crashes playing a sound that will have played fine many times before the crash happens. I have reproducred on 2/2 computers that I have tried it on.[/quote]
Possible Codes
Feature
Code
Link
[url] www.example.com [/url]
Bold
[b]bold text[/b]
Image
[img]http://www.example.com/image.jpg[/img]
Quote
[quote]quoted text[/quote]
Code
[code]source code[/code]
Emoticons
Copyright© Ambiera e.U. all rights reserved.
Privacy Policy | Terms and Conditions | Imprint | Contact