I have a legacy 3D game written in Ogre and am trying to fix a series
of exceptions in OpenALDotNet. There are two variations, one of which
appears to run constantly after a while and one of which causes the
program to hang. Ideally, I’d like to do whatever is needed to get rid
of the exceptions OR find a way to safely ignore them.
I am Ogre/C# naive. Thanks for looking.
Error 1 trace from DOS console happens after a number of sounds have
been played and then keeps happening until the player is reset:
OpenALDotNet.OpenAlException: Invalid Name
at OpenALDotNet.AudioSource.set_Gain(Single value)
The fatal error occurs on CheckAL:
public class OpenAlException : Exception
public static void CheckAl(int errorcode)
if (errorcode != Al.AL_NO_ERROR)
throw new OpenAlException(Al.alGetString(errorcode));// occurs here
Error Trace from Visual STudio:
OpenALDotNet.OpenAlException was unhandled
at OpenALDotNet.OpenAlException.CheckAl(Int32 errorcode)
at ScienceOfDriving.audio.AudioPlayer.PlayLoop(Object obj) in
at System.Threading.ThreadHelper.ThreadStart_Context(Object state)
executionContext, ContextCallback callback, Object state)
at System.Threading.ThreadHelper.ThreadStart(Object obj)
Please log in or register to post a reply.