Skip to content
This repository has been archived by the owner on Mar 30, 2019. It is now read-only.

XAudio2 error on windows 8 #336

Closed
StrixOverflow opened this issue Apr 7, 2014 · 2 comments
Closed

XAudio2 error on windows 8 #336

StrixOverflow opened this issue Apr 7, 2014 · 2 comments

Comments

@StrixOverflow
Copy link

This error doesn't happen in Win 7 and seems to only occur in Win 8 when debug flags are used. I have updated SharpDX libraries too and rebuilt but still have the issue.

"A first chance exception of type 'SharpDX.SharpDXException' occurred in SharpDX.dll
An exception of type 'SharpDX.SharpDXException' occurred in SharpDX.dll but was not handled in user code
Additional information: HRESULT: [0x80040154], Module: [Unknown], ApiCode: [Unknown/Unknown], Message: Class not registered"

This occurs when creating the XAudio device using the following code

"xAudioDevice = new XAudio2(xAudioDebugFlags, ProcessorSpecifier.DefaultProcessor);"

Using the default constructor doesn't give any errors however I want debug flags on so I use this. I have messed around a bit with flags / processor specifier and the error occurs when "XAudio2Flags.DebugEngine" is used. This is a normal desktop app and I have no other issues with running on Win 8 and for what it's worth no COM issues of my own, assuming this is a COM issue.

@xoofx
Copy link
Member

xoofx commented Apr 7, 2014

This is most likely a XAudio2 installation problem. It depends which assemblies you are using. If it is DirectX11-net40, you need to have installed the DirectX June 2010 SDK, as Debug DLLs are only available from the SDK (as explained here: http://msdn.microsoft.com/en-us/library/windows/desktop/ee415752%28v=vs.85%29.aspx)

@xoofx xoofx closed this as completed Apr 7, 2014
@StrixOverflow
Copy link
Author

Cool, thanks for the quick reply and link.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants