Sem;colon wrote:hmm, looks like the new lib form version 2.1 only works with EG version 0.5 and up.

You are missing the "stdole.py" and "MMDeviceAPILib.py" files that are needed for EG 0.4 as comtypes can't generate them.
The comtypes in Python 2.7 don't have the problem so it works in EG 0.5 that uses 2.7.

There is also a period missing in the "AudioEndpointControl\__init__.py" file, line 13 should be:

I don't understand what went wrong it used to work perfectly, following a system crash (I think) it's not working anymore. I reinstalled EG RC2, even reinstalled the AudioEndpoint plugin (latest version, and also older) just to be on the safe side, but I still can not import this plugin... Any thoughts on this ?

Snowbird wrote:I don't understand what went wrong it used to work perfectly, following a system crash (I think) it's not working anymore. I reinstalled EG RC2, even reinstalled the AudioEndpoint plugin (latest version, and also older) just to be on the safe side, but I still can not import this plugin... Any thoughts on this ?

This file "_2FDAAFA3_7523_4F66_9957_9D5E7FE698F6_0_1_0.py" gets automatically generated and I'm guessing it is corrupted or wrong version, I'm not sure where it is on your system, but try to find it and delete (or move) it and try again.

jonib wrote:This file "_2FDAAFA3_7523_4F66_9957_9D5E7FE698F6_0_1_0.py" gets automatically generated and I'm guessing it is corrupted or wrong version, I'm not sure where it is on your system, but try to find it and delete (or move) it and try again.

jonib

Thanks, it worked !!

if this happens to anyone else, the files are located here, just delete them all and restart EG :%LOCALAPPDATA%\Temp\comtypes_cache\EventGhost-27

hey guys,
I'm struggling with checking if one specific audio device is connected. Sorry if that has been discussed here somewhere, I couldn't find any info for that.
I tried to set audio on the disconnected device hopping to get some error then but there was none. Apparently AudioEndpoint is setting the volume on the disconnected device. But of course I will not get a volume change from the system then. So I could use that for determining the connection status but I was thinking that there has to be an easier way?

[Edit:] Some more info: AudioEndpoint will even give me an event with the new volume on the disconnected device which might be a logical thing to do. It just doesn't help me with my workaround. I'm handling it now with System.Volume event which is not triggered.

I'm doing that of course. It's just that this fails sometimes. I guess around sleep/wake. So I wanted to build in some kind of check if the avr is there or not because I don't want some other actions to be triggered until it is. It's no biggie I'll work around it.

i want to use this plugin to change the default audio output devices.
But after some time my actions get to:

AudioEndpoint: ???

after reconfiguring it (doubleclick), i can rechoose my devices and everything is fine again..

audioendpoint01.jpg

it seems like the plugin gets messed up and doesn't remember my devices if i disconnect and connect them again or something..

anyone got an idea on that? is there even a newer plugin for my task?

LG nYce

I am also experiencing this exact problem in Windows 10 Professional. Not sure what might be causing the issue. I guess I'll give Nircmd a try since I have it installed anyway. Just wish there was an easier way.

Hey Everyone!
A new version is here, tackling the Windows 10 - devices disappear problem!

v2.3.2:
-Fixed a bug: "Get Default Audio Device" was not working in combination with "Set Volume"
-Added action: "Get Audio Device By Name" to get an audio device by its name instead of its unique ID. You can use wildcards. The first device where the name matches will be returned to be used in one of the other actions - for example, to change the default audio device. This is useful when running Windows 10, as after OS upgrades and/or driver updates the IDs that are used to reference an AudioEndpoint can change, but the name usually stays the same.
-Some small bugfixes
-Updated AudioEndpointControl lib by jonib with the latest sources, this (hopefully) increased the stability
This version is not tested with EG 0.4 and therefore may not work with it!

Sem;colon, hi . Is there a way to get full list of audio devices (by Python)? I understand that I could make it by switching default device to the next (collecting ID's), but it would be desirable to get the list without switching the device...