Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    text
    copied!<p><strong><em>Disclaimer:</strong> I'm not a windows programming guru by any means...but here's my best guess</em></p> <p>Per the <a href="http://python.net/crew/mhammond/win32/FAQ.html" rel="nofollow noreferrer">pywin32 FAQ</a>:</p> <blockquote> <p><strong>How do I use the exposed Win32 functions to do xyz?</strong></p> <p>In general, the trick is to not consider it a Python/PyWin32 question at all, but to search for documentation or examples of your problem, regardless of the language. This will generally give you the information you need to perform the same operations using these extensions. The included documentation will tell you the arguments and return types of the functions so you can easily determine the correct way to "spell" things in Python.</p> </blockquote> <p>Sounds like you're looking to control the "endpoint device" volumes (i.e. your sound card / line-in). Here's the <a href="http://msdn.microsoft.com/en-us/library/dd370832(VS.85).aspx" rel="nofollow noreferrer">API reference</a> in that direction.</p> <p><a href="http://msdn.microsoft.com/en-us/library/dd370825(VS.85).aspx" rel="nofollow noreferrer">Here</a>'s a slightly broader look at controlling audio devices in windows if the previous wasn't what you're looking for.</p> <p><a href="http://blog.xploiter.com/c-and-aspnet/muting-audio-channels-mixer-control-api/" rel="nofollow noreferrer">Here</a>'s a blog entry from someone who did what you're trying to do in C# (I know you specified python, but you might be able to extract the correct API calls from the code).</p> <p>Good luck! And if you do get working code, I'm interested to see it.</p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload