Notice: This forum has been recovered from an old backup, so some content, links, and dates may be outdated. The forum is currently read-only while we restore sign-in and registration functionality. Details

If you find this forum valuable and would like to help keep it online, donations to help cover hosting and domain costs are greatly appreciated, but never expected. You can support the forum through Buy Me a Coffee or Ko-fi. Thank you for helping preserve the EventGhost community.

Error on Turn Mute Off & Turn Mute On

If you have a question or need help, this is the place to be.
Post Reply
neeto33
Posts: 3
Joined: Sun Jul 23, 2017 4:29 am

Error on Turn Mute Off & Turn Mute On

Post by neeto33 »

Hi,

I'm getting the following errors in both 0.4.1.r1710 and 0.5.0-rc4
I didn't used to get these errors.
I think one of the updates in window 10 started this happening.

The device this happens on a device called "ASIO Bridge (VB-Audio)"

Thanks,

Neeto

System.UnMute '10.00'
Turn Mute Off
Turn Mute Off
Error in Action: "Turn Mute Off"
Traceback (most recent call last) (0.5.0-rc4):
File "C:\Program Files (x86)\EventGhost\eg\Classes\ActionBase.py", line 116, in CallWrapper
return self(*args)
File "C:\Program Files (x86)\EventGhost\plugins\System\__init__.py", line 1944, in __call__
SoundMixer.SetMute(False, deviceId)
File "C:\Program Files (x86)\EventGhost\eg\WinApi\SoundMixer.py", line 499, in SetMute
deviceId = GetDeviceId(deviceId, True)
File "C:\Program Files (x86)\EventGhost\plugins\System\__init__.py", line 101, in GetDeviceId_
id = oldGetDeviceId(*args, **kwargs)
File "C:\Program Files (x86)\EventGhost\eg\WinApi\SoundMixer.py", line 275, in GetDeviceId
raise SoundMixerException()
SoundMixerException
Main.OnInit
User avatar
kgschlosser
Site Admin
Posts: 5190
Joined: Fri Jun 05, 2015 5:43 am
Location: Rocky Mountains, Colorado USA

Re: Error on Turn Mute Off & Turn Mute On

Post by kgschlosser »

here is what I want you to do.


create a macro with a Python script in it. and paste the following code into the script. then click on apply and then test. copy and paste the printed data in the log into a forum post.

Is the problem only with Mute??

also if you could run this before you get the error and after it would be helpful

Code: Select all


from eg.WinApi import SoundMixer

print SoundMixer.GetMixerDevices()

If you like the work I have been doing then feel free to Image
neeto33
Posts: 3
Joined: Sun Jul 23, 2017 4:29 am

Re: Error on Turn Mute Off & Turn Mute On

Post by neeto33 »

Hi,

It's only with a problem with mute.
Both of these commands work find
Change Master Volume 1.00%
Change Master Volume #2 1.00%

Here's the output from
from eg.WinApi import SoundMixer
print SoundMixer.GetMixerDevices()

{0: u'Hi-Fi Cable Input (VB-Audio Hi-', 1: u'LynxTWO-B (LynxTWO-B)', 2: u'Headphones (High Definition Aud', 3: u'Record 01+02 (LynxTWO-B)', 4: u'Hi-Fi Cable Output (VB-Audio Hi', -1: 'Primary Sound Driver'}

Thanks,

Neeto
User avatar
kgschlosser
Site Admin
Posts: 5190
Joined: Fri Jun 05, 2015 5:43 am
Location: Rocky Mountains, Colorado USA

Re: Error on Turn Mute Off & Turn Mute On

Post by kgschlosser »

so what you are trying to do is to turn the mute off 2 times?


would you mind copying and pasting the macros with the mute and the volume changes here as well
If you like the work I have been doing then feel free to Image
neeto33
Posts: 3
Joined: Sun Jul 23, 2017 4:29 am

Re: Error on Turn Mute Off & Turn Mute On

Post by neeto33 »

Ok - after deleting the Mute command and re-adding it it's fine.
Seems that updating the sound card driver caused it to be removed and add which messed up the reference in the mute command.
User avatar
kgschlosser
Site Admin
Posts: 5190
Joined: Fri Jun 05, 2015 5:43 am
Location: Rocky Mountains, Colorado USA

Re: Error on Turn Mute Off & Turn Mute On

Post by kgschlosser »

ok cool. I am happy to see ya got it fixed. I also was going to ask if you were using a remote desktop as this can muck things up as well. But it seems as tho everything is good.
If you like the work I have been doing then feel free to Image
Post Reply