Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7571463
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 30, 20262026-05-30T15:40:53+00:00 2026-05-30T15:40:53+00:00

Whenever I try to create a new audio context in monodroid, it fallls over

  • 0

Whenever I try to create a new audio context in monodroid, it fallls over telling me that openal32.dll is missing; which naturally doesn’t make sense, being as this is monodroid, and openal is included as part of OpenTK.

I can only assume i’m doing something wrong, but i’ve used OpenTK/OpenAL before under windows and have managed just fine with similar code.

anyway here is the offending code:

        public Audio()
    {
        if (Loaded == false)
        {
            Loaded = true;
            try
            {
                try {Console.WriteLine ("Current: " + AudioContext.CurrentContext.ToString());} catch { Console.WriteLine ("no current context"); }
                try {Console.WriteLine ("Default: " + AudioContext.DefaultDevice);} catch { Console.WriteLine ("no default device"); }

                Context = new AudioContext();
                ValidContext = true; //we have a valid audio context!
            }
            catch (Exception ex)
            {
                Console.WriteLine ("Loading the audio context failed.");
                Console.WriteLine (ex.ToString ());
                Console.WriteLine (ex.Message);
                ValidContext = false; //Loading the audio context failed :(
            }
        }
    }

And here is the output:

I/monodroid-gc(24762): environment supports jni NewWeakGlobalRef

D/AndroidGameView(24762): SurfaceCreated

D/libEGL  (24762): egl.cfg not found, using default config

D/libEGL  (24762): loaded /system/lib/egl/libGLES_android.so

I/mono-stdout(24762): no current context

I/mono-stdout(24762): no default device

I/mono-stdout(24762): Loading the audio context failed.

I/mono-stdout(24762): System.TypeInitializationException: An exception was thrown by the type initializer for OpenTK.Audio.AudioContext ---> System.TypeInitializationException: An exception was thrown by the type initializer for OpenTK.Audio.AudioDeviceEnumerator ---> System.DllNotFoundException: openal32.dll

I/mono-stdout(24762):   at (wrapper managed-to-native) OpenTK.Audio.OpenAL.Alc:MakeContextCurrent (intptr)

I/mono-stdout(24762):   at OpenTK.Audio.OpenAL.Alc.MakeContextCurrent (ContextHandle context) [0x00000] in <filename unknown>:0 

I/mono-stdout(24762):   at OpenTK.Audio.AudioDeviceEnumerator..cctor () [0x00000] in <filename unknown>:0 

I/mono-stdout(24762):   --- End of inner exception stack trace ---

I/mono-stdout(24762):   at OpenTK.Audio.AudioContext..cctor () [0x00000] in <filename unknown>:0 

I/mono-stdout(24762):   --- End of inner exception stack trace ---

I/mono-stdout(24762):   at Hardware.Audio..ctor () [0x00000] in <filename unknown>:0 

I/mono-stdout(24762): An exception was thrown by the type initializer for OpenTK.Audio.AudioContext

I/ARMAssembler(24762): generated scanline__00000177:03545444_00009001_00000000 [159 ipp] (215 ins) at [0x4fc138:0x4fc494] in 4168381 ns
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-30T15:40:54+00:00Added an answer on May 30, 2026 at 3:40 pm

    openal32.dll is not included as part of OpenTK. OpenTK just has bindings for OpenAL. Just like opengl32.dll, which is included as part of your graphics card drivers, openal32.dll must be installed through audio card drivers (or a software implementation of it).

    After a quick search, it looks like you need to compile a software implementation of OpenAL for Android: http://pielot.org/2010/12/14/openal-on-android/

    Edit: It looks like Android prefers to use the newer OpenSL ES. If you’ve got a bit of time on your hands, you could try to get OpenTK’s generator to generate OpenSL ES bindings for you.

    This other StackOverflow question has a few other options for using OpenSL.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Whenever I try to create a new QWebView, the post-build error is QWidget: Must
Whenever I try to create a mysqli object, as in; $mysqli = new mysqli(host,
My VS 2003 is not working. Whenever I try to create a new project
Whenever I try to create a new rails app I get a permission denied
Whenever I try to create a new Android project (inside an empty workspace) with
Whenever I try to add a new project to my SourceSafe repository it creates
I'm trying to create an array (States) of arrays (Cities). Whenever I try to
I'm using ASP.Net and whenever I create a script file or try to include
I get an error whenever I try to create a simple edge from a
Whenever i need to create SQLiteOpenHelper 'databasehelper' object, i need to pass the context

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.