<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[Серый форум &mdash; AHK: Свой gui микшер]]></title>
	<link rel="self" href="https://forum.script-coding.com/extern.php?action=feed&amp;tid=12269&amp;type=atom" />
	<updated>2017-01-09T18:07:51Z</updated>
	<generator>PunBB</generator>
	<id>https://forum.script-coding.com/viewtopic.php?id=12269</id>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Свой gui микшер]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=110755#p110755" />
			<content type="html"><![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>]]></content>
			<author>
				<name><![CDATA[Alectric]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=26027</uri>
			</author>
			<updated>2017-01-09T18:07:51Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=110755#p110755</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Свой gui микшер]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=110653#p110653" />
			<content type="html"><![CDATA[<p>Вы бы читали, что запускаете:<br /></p><div class="codebox"><pre><code>; Requirements:
;   VA 2.1 - http://www.autohotkey.com/forum/topic23792.html</code></pre></div>]]></content>
			<author>
				<name><![CDATA[Malcev]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=26930</uri>
			</author>
			<updated>2017-01-06T16:18:11Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=110653#p110653</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Свой gui микшер]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=110652#p110652" />
			<content type="html"><![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>]]></content>
			<author>
				<name><![CDATA[cahtbap1]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=34377</uri>
			</author>
			<updated>2017-01-06T16:15:41Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=110652#p110652</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Свой gui микшер]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=110464#p110464" />
			<content type="html"><![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>]]></content>
			<author>
				<name><![CDATA[Malcev]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=26930</uri>
			</author>
			<updated>2017-01-02T22:04:47Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=110464#p110464</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[AHK: Свой gui микшер]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=110414#p110414" />
			<content type="html"><![CDATA[<p>Чисто в цели набраться опыта хочу узнать как сделать свой микшер на подобии системного?<br />Прочитал SoundSet и SoundGet , научился изменять только общую громкость. А как же добиться соотношения громкостей разных программ?</p>]]></content>
			<author>
				<name><![CDATA[cahtbap1]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=34377</uri>
			</author>
			<updated>2016-12-31T07:33:32Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=110414#p110414</id>
		</entry>
</feed>
