<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title><![CDATA[Серый форум &mdash; AHK: Свой gui микшер]]></title>
		<link>https://forum.script-coding.com/viewtopic.php?id=12269</link>
		<atom:link href="https://forum.script-coding.com/extern.php?action=feed&amp;tid=12269&amp;type=rss" rel="self" type="application/rss+xml" />
		<description><![CDATA[Недавние сообщения в теме «AHK: Свой gui микшер».]]></description>
		<lastBuildDate>Mon, 09 Jan 2017 18:07:51 +0000</lastBuildDate>
		<generator>PunBB</generator>
		<item>
			<title><![CDATA[Re: AHK: Свой gui микшер]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=110755#p110755</link>
			<description><![CDATA[<p><strong>cahtbap1</strong><br /><a href="http://forum.script-coding.com/viewtopic.php?id=8605">http://forum.script-coding.com/viewtopic.php?id=8605</a></p>]]></description>
			<author><![CDATA[null@example.com (Alectric)]]></author>
			<pubDate>Mon, 09 Jan 2017 18:07:51 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=110755#p110755</guid>
		</item>
		<item>
			<title><![CDATA[Re: AHK: Свой gui микшер]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=110653#p110653</link>
			<description><![CDATA[<p>Вы бы читали, что запускаете:<br /></p><div class="codebox"><pre><code>; Requirements:
;   VA 2.1 - http://www.autohotkey.com/forum/topic23792.html</code></pre></div>]]></description>
			<author><![CDATA[null@example.com (Malcev)]]></author>
			<pubDate>Fri, 06 Jan 2017 16:18:11 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=110653#p110653</guid>
		</item>
		<item>
			<title><![CDATA[Re: AHK: Свой gui микшер]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=110652#p110652</link>
			<description><![CDATA[<p><strong>Malcev</strong><br />Ошибка (<br />микшер.ahk (10) : ==&gt; Call to nonexistent function.<br />&nbsp; &nbsp; &nbsp;Specifically: VA_GetDevice()<br />&gt;Exit code: 2&nbsp; &nbsp; Time: 0.05897</p>]]></description>
			<author><![CDATA[null@example.com (cahtbap1)]]></author>
			<pubDate>Fri, 06 Jan 2017 16:15:41 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=110652#p110652</guid>
		</item>
		<item>
			<title><![CDATA[Re: AHK: Свой gui микшер]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=110464#p110464</link>
			<description><![CDATA[<div class="codebox"><pre><code>; Requirements:
;   VA 2.1 - http://www.autohotkey.com/forum/topic23792.html
;   Windows 7
;   AutoHotkey_L
;   Luck?

IID_IAudioSessionManager2 := &quot;{77AA99A0-1BD6-484F-8BC7-2C654C9A9B6F}&quot;
IID_ISimpleAudioVolume := &quot;{87CE5498-68D6-44E5-9215-6DA47EF883D8}&quot;

dev := VA_GetDevice()
if !dev
    throw &quot;Can&#039;t get device&quot;
if VA_IMMDevice_Activate(dev, IID_IAudioSessionManager2, 7, 0, mgr) != 0
    throw &quot;Can&#039;t get session manager&quot;
ObjRelease(dev)
if VA_IAudioSessionManager2_GetSessionEnumerator(mgr, enm) != 0
    throw &quot;Can&#039;t get session enumerator&quot;
ObjRelease(mgr)
VA_IAudioSessionEnumerator_GetCount(enm, count)
Loop % count
{
    ; IAudioSessionControl *session;
    VA_IAudioSessionEnumerator_GetSession(enm, A_Index-1, ssn)
    VA_IAudioSessionControl_GetDisplayName(ssn, name)
    VA_IAudioSessionControl2_GetProcessId(ssn, pid)
    sav := ComObjQuery(ssn, IID_ISimpleAudioVolume)
    ObjRelease(ssn)
    if !sav ; Unlikely?
        throw &quot;Can&#039;t get volume control&quot;
    VA_ISimpleAudioVolume_GetMasterVolume(sav, volume)
    MsgBox %name%`nPID: %pid%`nVolume: %volume%
    ObjRelease(sav)
}
ObjRelease(enm)


;
; ISimpleAudioVolume -- currently not included in VA.ahk
;
VA_ISimpleAudioVolume_SetMasterVolume(this, Level, EventContext) {
    return DllCall(NumGet(NumGet(this+0)+3*A_PtrSize), &quot;uint&quot;, this, &quot;float&quot;, Level, &quot;uint&quot;, VA_GUID(EventContext))
}
VA_ISimpleAudioVolume_GetMasterVolume(this, ByRef Level) {
    return DllCall(NumGet(NumGet(this+0)+4*A_PtrSize), &quot;uint&quot;, this, &quot;float*&quot;, Level)
}
VA_ISimpleAudioVolume_SetMute(this, Mute, EventContext) {
    return DllCall(NumGet(NumGet(this+0)+5*A_PtrSize), &quot;uint&quot;, this, &quot;int&quot;, Mute, &quot;uint&quot;, VA_GUID(EventContext))
}
VA_ISimpleAudioVolume_GetMute(this, ByRef Mute) {
    return DllCall(NumGet(NumGet(this+0)+6*A_PtrSize), &quot;uint&quot;, this, &quot;int*&quot;, Mute)
}</code></pre></div>]]></description>
			<author><![CDATA[null@example.com (Malcev)]]></author>
			<pubDate>Mon, 02 Jan 2017 22:04:47 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=110464#p110464</guid>
		</item>
		<item>
			<title><![CDATA[AHK: Свой gui микшер]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=110414#p110414</link>
			<description><![CDATA[<p>Чисто в цели набраться опыта хочу узнать как сделать свой микшер на подобии системного?<br />Прочитал SoundSet и SoundGet , научился изменять только общую громкость. А как же добиться соотношения громкостей разных программ?</p>]]></description>
			<author><![CDATA[null@example.com (cahtbap1)]]></author>
			<pubDate>Sat, 31 Dec 2016 07:33:32 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=110414#p110414</guid>
		</item>
	</channel>
</rss>
