CXO2's picture

[Solved] Audio Context Error: "The audio context could not be created with the specified parameters."

Hi, I am having problem when creating AudioContext

The error is not reproduced constantly, sometime its occur, sometimes not.
But usually the problem is occur when 2nd time i am debugging my program (the 1st time usually didnt get any error after i make some modification of source)

The error is "The audio context could not be created with the specified parameters."

Here the code how i am creating the AudioContext:

        /// <summary>
        /// Initialize Sound System
        /// </summary>
        public void Initialize()
        {
            try
            {
                AudioContext context = new AudioContext();
            }
            catch(Exception ex)
            {
                Trace.WriteLine("Failed to create Audio Context:" +
                    Environment.NewLine + ex.Message, "Error");
            }

Comments

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
the Fiddler's picture

It may be that the audio device is somehow locked. Which operating system is this? Which version of OpenAL are you using?

CXO2's picture
the Fiddler wrote:

It may be that the audio device is somehow locked. Which operating system is this? Which version of OpenAL are you using?

Its Windows 7 x86 bit
hmm, how to check OpenAL version?

the Fiddler's picture

Are you using the dll found under opentk/Dependencies or did you install OpenAL from somewhere else?

CXO2's picture

Somewhere from creativelabs (its about long time ago)
hmm I will try the one that came from OpenTK Dependencies

CXO2's picture

Seem the problem is fixed!
Thank you Fiddler!

the Fiddler's picture

Yeah, the version from Creative hasn't been updated for a decade now and it's horribly out of date. The dll in opentk/Dependencies is a build of openal-soft which is pretty much the best implementation out there now.

CXO2's picture

Okayy update again, it seem my driver fault.
few application also suffer this problem, sorry for reopen the problem