This is not really a bug, just a missing method/function. I found this was missing while writing a plugin which I am still working on. There is a GetMute available in SoundMixerEx (windows XP version looks like) but that is not available in the System plugin __init__.py which has a wrapper to a Vista Dll to overrides certain audio functions/methods (like SetMasterVolume() and ToggleMute()). This is despite that all the code pieces needed to create a GetMute function/method for Vista/Win7 is pretty much already there in the System py file and the Vista DLL. I have made the changes in my own local isntall and have been testing my changes for several releases now through my own plugin on a Win7 machine, it works just fine for me. I am using latest version 3.7.r1486 now, just upgraded this evening from 1482 (I think), and no problems with new version either. Looks like System plugin has not changed for a while, I did a diff before upgrading the last two builds I snagged and saw no other changes to the file.
So, I have very thoroughly tested my code from calling within Python through my plugin code, however I have only mildly tested the GUI action, but it generally seems to work on Win7, and should be the same on Vista considering I did not actually change any code that was already executing, just wrapping the same code from Vista DLL that was already running under ToggleMute.
Here is my System.py code with GetMute added, I would really appreciate if this could be added to base so it will be there when I release my own plugin that really needs this code.
Regards,
HotBuddha
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.
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.
Missing GetMute in System.py
Missing GetMute in System.py
- Attachments
-
- __init__.py
- System\__init__.py with GetMute
- (38.04 KiB) Downloaded 314 times
- Pako
- Plugin Developer
- Posts: 2294
- Joined: Sat Nov 11, 2006 1:31 pm
- Location: Czech Republic
- Contact:
Re: Missing GetMute in System.py
Thank you, incorporated in version r1494.
Pako
Pako
You know flattr ? You can 

Re: Missing GetMute in System.py
Thanks that is outstanding. I have XP loaded virtually on my PC now, so when I get the chance I will test XP and if any changes needed I will post back.