-
Notifications
You must be signed in to change notification settings - Fork 55
Open
Description
I use
using AudioSwitcher.AudioApi;
using AudioSwitcher.AudioApi.CoreAudio;
in my project which targets .NET Framework 4.7.2 and have very simple code that basically creates a new CoreAudioController instance and then iterates to find all of the playback devices. The problem is the line var controller = new CoreAudioController(); causes a long list of errors and I don't know if I need to fix this or it's just errors about some of my disconneced audio devices.
I am not proficient with C#, just need a quick tip. I work on Win10 and also tried running the project on Win11 laptop and there are no errors.
private void Form1_Load(object se, EventArgs ev)
{
var controller = new CoreAudioController();
IEnumerable<CoreAudioDevice> devices = controller.GetPlaybackDevices()
.Where(d => d.State == DeviceState.Active)
.ToList();
};
Error example:
Exception thrown at 0x00007FF8BE2FAF29 (KernelBase.dll) in BigPictureManager.exe: WinRT originate error - 0x80004001 : 'Not implemented'.
avcore\audiocore\client\audioclient\audioclientvolume.cpp(193)\AUDIOSES.DLL!00007FF8B5DDA8BE: (caller: 00007FF8B5DDA9BE) ReturnHr(1) tid(558) 80004003 Invalid pointer
avcore\audiocore\client\audioclient\audioclientvolume.cpp(235)\AUDIOSES.DLL!00007FF8B5DF9036: (caller: 00007FF8B5DD4DAF) ReturnHr(2) tid(558) 80004003 Invalid pointer
avcore\audiocore\client\audioclient\mmdeviceactivator.cpp(372)\AUDIOSES.DLL!00007FF8B5DF695B: (caller: 00007FF8B5A46FA7) ReturnHr(3) tid(558) 80004003 Invalid pointer
avcore\audiocore\client\audioclient\audioclientsessionmgr.cpp(505)\AUDIOSES.DLL!00007FF8B5E25F18: (caller: 00007FF8B5E2627A) ReturnHr(4) tid(558) 80004003 Invalid pointer
avcore\audiocore\client\audioclient\audioclientsessionmgr.cpp(348)\AUDIOSES.DLL!00007FF8B5E26298: (caller: 00007FF8B5E261AA) ReturnHr(5) tid(558) 80004003 Invalid pointer
avcore\audiocore\deviceapi\registrypropertystore\registrypropertystore.cpp(304)\MMDevApi.dll!00007FF8B5A3B73C: (caller: 00007FF87F153512) ReturnHr(1) tid(558) 80004002 No such interface supported
avcore\audiocore\deviceapi\registrypropertystore\registrypropertystore.cpp(304)\MMDevApi.dll!00007FF8B5A3B73C: (caller: 00007FF87F153512) ReturnHr(2) tid(558) 80004002 No such interface supported
avcore\audiocore\deviceapi\registrypropertystore\registrypropertystore.cpp(304)\MMDevApi.dll!00007FF8B5A3B73C: (caller: 00007FF87F153512) ReturnHr(3) tid(558) 80004002 No such interface supported
avcore\audiocore\deviceapi\registrypropertystore\registrypropertystore.cpp(304)\MMDevApi.dll!00007FF8B5A3B73C: (caller: 00007FF87F14FB37) ReturnHr(4) tid(558) 80004002 No such interface supported
avcore\audiocore\deviceapi\registrypropertystore\registrypropertystore.cpp(304)\MMDevApi.dll!00007FF8B5A3B73C: (caller: 00007FF87F14FB37) ReturnHr(5) tid(558) 80004002 No such interface supported
avcore\audiocore\deviceapi\registrypropertystore\registrypropertystore.cpp(304)\MMDevApi.dll!00007FF8B5A3B73C: (caller: 00007FF87F14FB37) ReturnHr(6) tid(558) 80004002 No such interface supported
avcore\audiocore\deviceapi\registrypropertystore\registrypropertystore.cpp(304)\MMDevApi.dll!00007FF8B5A3B73C: (caller: 00007FF87F153512) ReturnHr(7) tid(558) 80004002 No such interface supported
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels