Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

MissingMethodException on OpenAL GetExtension #590

Closed
LaXiS96 opened this issue Aug 22, 2021 · 1 comment · Fixed by #602
Closed

MissingMethodException on OpenAL GetExtension #590

LaXiS96 opened this issue Aug 22, 2021 · 1 comment · Fixed by #602
Assignees
Labels
area-OpenAL bug Something isn't working
Milestone

Comments

@LaXiS96
Copy link

LaXiS96 commented Aug 22, 2021

Summary

Trying to instantiate any OpenAL extension with GetExtension<TContextExtension>(Device* device) results in exceptions like these:

Constructor on type 'Silk.NET.OpenAL.Extensions.EXT.Capture' not found.
Constructor on type 'Silk.NET.OpenAL.Extensions.Enumeration.Enumeration' not found.

Steps to reproduce

  • Platform: Desktop
  • Framework Version: .NET 5.0
  • API: OpenAL Soft
  • API Version: OpenAL v2.7.0, OpenAL.Soft.Native v1.21.1.1
  1. Test code:
using Silk.NET.OpenAL;
using Silk.NET.OpenAL.Extensions.EXT;

namespace ConsoleApp1
{
    class Program
    {
        static unsafe void Main(string[] args)
        {
            using var alc = ALContext.GetApi(true);

            if (alc.IsExtensionPresent(null, "ALC_EXT_CAPTURE"))
            {
                using var captureApi = alc.GetExtension<Capture>(null);
            }
        }
    }
}

  1. Exception on alc.GetExtension<Capture>(null)

Comments

In discussion #573 @Perksey included a piece of code where GetExtension had an overload with no arguments, but the current version does not include that overload.

@LaXiS96 LaXiS96 added the bug Something isn't working label Aug 22, 2021
@Perksey Perksey added this to the 2.X milestone Sep 1, 2021
@Perksey Perksey self-assigned this Sep 1, 2021
@Perksey
Copy link
Member

Perksey commented Sep 1, 2021

Thanks, will look into this in time for Friday's update. By the way, this is an outstanding model bug report - always great when we have all the information and a little minimal reproduction :D

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area-OpenAL bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants