<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[Systemlautstärke]]></title><description><![CDATA[<p>Hallo</p>
<p>Ist es irgendwie möglich z.B. mit SendMessage die Systemlautstärke zu ändern?<br />
Wäre toll! Brauche einfach die Funktionen Vol+, Vol- und Mute...</p>
<p>Merci</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/147473/systemlautstärke</link><generator>RSS for Node</generator><lastBuildDate>Fri, 17 Jul 2026 00:11:02 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/147473.rss" rel="self" type="application/rss+xml"/><pubDate>Wed, 17 May 2006 08:59:34 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Systemlautstärke on Wed, 17 May 2006 08:59:34 GMT]]></title><description><![CDATA[<p>Hallo</p>
<p>Ist es irgendwie möglich z.B. mit SendMessage die Systemlautstärke zu ändern?<br />
Wäre toll! Brauche einfach die Funktionen Vol+, Vol- und Mute...</p>
<p>Merci</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1059355</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1059355</guid><dc:creator><![CDATA[SirDuke]]></dc:creator><pubDate>Wed, 17 May 2006 08:59:34 GMT</pubDate></item><item><title><![CDATA[Reply to Systemlautstärke on Wed, 17 May 2006 09:31:40 GMT]]></title><description><![CDATA[<p><a href="http://www.codeproject.com/audio/admixer.asp" rel="nofollow">http://www.codeproject.com/audio/admixer.asp</a><br />
<a href="http://www.borg.com/~jglatt/tech/mixer.htm" rel="nofollow">http://www.borg.com/~jglatt/tech/mixer.htm</a></p>
]]></description><link>https://www.c-plusplus.net/forum/post/1059380</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1059380</guid><dc:creator><![CDATA[Martin Richter]]></dc:creator><pubDate>Wed, 17 May 2006 09:31:40 GMT</pubDate></item><item><title><![CDATA[Reply to Systemlautstärke on Wed, 17 May 2006 11:52:42 GMT]]></title><description><![CDATA[<p>Diese Links habe ich auch schon gefunden, jedoch verstehe ichs nicht wirklich...<br />
Gibt es keine &quot;Funktion&quot;, mit der ich die Lautstärke lauter und leiser machen kann?</p>
<p>Hoffentlich gibts das... Ist wirklich wichtig!<br />
(Arbeite mit BCB6)</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1059491</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1059491</guid><dc:creator><![CDATA[SirDuke]]></dc:creator><pubDate>Wed, 17 May 2006 11:52:42 GMT</pubDate></item><item><title><![CDATA[Reply to Systemlautstärke on Wed, 17 May 2006 16:30:36 GMT]]></title><description><![CDATA[<p>Der Link auf Codeproject macht es doch! Was willst Du eigentlich mehr?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1059708</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1059708</guid><dc:creator><![CDATA[Martin Richter]]></dc:creator><pubDate>Wed, 17 May 2006 16:30:36 GMT</pubDate></item><item><title><![CDATA[Reply to Systemlautstärke on Wed, 17 May 2006 20:15:02 GMT]]></title><description><![CDATA[<p>Er möchte ein Beispiel, welches er auch versteht und nicht ein für ihn unverständlichen Code.</p>
<p>Mfg Ominion</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1059841</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1059841</guid><dc:creator><![CDATA[Ominion]]></dc:creator><pubDate>Wed, 17 May 2006 20:15:02 GMT</pubDate></item><item><title><![CDATA[Reply to Systemlautstärke on Wed, 17 May 2006 20:52:08 GMT]]></title><description><![CDATA[<p><a href="http://msdn.microsoft.com/library/default.asp?url=/library/en-us/multimed/htm/_win32_multimedia_functions.asp" rel="nofollow">http://msdn.microsoft.com/library/default.asp?url=/library/en-us/multimed/htm/_win32_multimedia_functions.asp</a></p>
<p>Aus &quot;Program 2&quot; von dem CodeProject Link:</p>
<pre><code class="language-cpp">BOOL CVolumeDlg::amdInitialize()
{
	ASSERT(m_hMixer == NULL);

	// get the number of mixer devices present in the system
	m_nNumMixers = ::mixerGetNumDevs();

	m_hMixer = NULL;
	::ZeroMemory(&amp;m_mxcaps, sizeof(MIXERCAPS));

	m_strDstLineName.Empty();
	m_strVolumeControlName.Empty();
	m_dwMinimum = 0;
	m_dwMaximum = 0;
	m_dwVolumeControlID = 0;

	// open the first mixer
	// A &quot;mapper&quot; for audio mixer devices does not currently exist.
	if (m_nNumMixers != 0)
	{
		if (::mixerOpen(&amp;m_hMixer,
						0,
						reinterpret_cast&lt;DWORD&gt;(this-&gt;GetSafeHwnd()),
						NULL,
						MIXER_OBJECTF_MIXER | CALLBACK_WINDOW)
			!= MMSYSERR_NOERROR)
		{
			return FALSE;
		}

		if (::mixerGetDevCaps(reinterpret_cast&lt;UINT&gt;(m_hMixer),
							  &amp;m_mxcaps, sizeof(MIXERCAPS))
			!= MMSYSERR_NOERROR)
		{
			return FALSE;
		}
	}

	return TRUE;
}

BOOL CVolumeDlg::amdUninitialize()
{
	BOOL bSucc = TRUE;

	if (m_hMixer != NULL)
	{
		bSucc = (::mixerClose(m_hMixer) == MMSYSERR_NOERROR);
		m_hMixer = NULL;
	}

	return bSucc;
}

BOOL CVolumeDlg::amdGetMasterVolumeControl()
{
	if (m_hMixer == NULL)
	{
		return FALSE;
	}

	// get dwLineID
	MIXERLINE mxl;
	mxl.cbStruct = sizeof(MIXERLINE);
	mxl.dwComponentType = MIXERLINE_COMPONENTTYPE_DST_SPEAKERS;
	if (::mixerGetLineInfo(reinterpret_cast&lt;HMIXEROBJ&gt;(m_hMixer),
						   &amp;mxl,
						   MIXER_OBJECTF_HMIXER |
						   MIXER_GETLINEINFOF_COMPONENTTYPE)
		!= MMSYSERR_NOERROR)
	{
		return FALSE;
	}

	// get dwControlID
	MIXERCONTROL mxc;
	MIXERLINECONTROLS mxlc;
	mxlc.cbStruct = sizeof(MIXERLINECONTROLS);
	mxlc.dwLineID = mxl.dwLineID;
	mxlc.dwControlType = MIXERCONTROL_CONTROLTYPE_VOLUME;
	mxlc.cControls = 1;
	mxlc.cbmxctrl = sizeof(MIXERCONTROL);
	mxlc.pamxctrl = &amp;mxc;
	if (::mixerGetLineControls(reinterpret_cast&lt;HMIXEROBJ&gt;(m_hMixer),
							   &amp;mxlc,
							   MIXER_OBJECTF_HMIXER |
							   MIXER_GETLINECONTROLSF_ONEBYTYPE)
		!= MMSYSERR_NOERROR)
	{
		return FALSE;
	}

	// store dwControlID
	m_strDstLineName = mxl.szName;
	m_strVolumeControlName = mxc.szName;
	m_dwMinimum = mxc.Bounds.dwMinimum;
	m_dwMaximum = mxc.Bounds.dwMaximum;
	m_dwVolumeControlID = mxc.dwControlID;

	return TRUE;
}

BOOL CVolumeDlg::amdGetMasterVolumeValue(DWORD &amp;dwVal) const
{
	if (m_hMixer == NULL)
	{
		return FALSE;
	}

	MIXERCONTROLDETAILS_UNSIGNED mxcdVolume;
	MIXERCONTROLDETAILS mxcd;
	mxcd.cbStruct = sizeof(MIXERCONTROLDETAILS);
	mxcd.dwControlID = m_dwVolumeControlID;
	mxcd.cChannels = 1;
	mxcd.cMultipleItems = 0;
	mxcd.cbDetails = sizeof(MIXERCONTROLDETAILS_UNSIGNED);
	mxcd.paDetails = &amp;mxcdVolume;
	if (::mixerGetControlDetails(reinterpret_cast&lt;HMIXEROBJ&gt;(m_hMixer),
								 &amp;mxcd,
								 MIXER_OBJECTF_HMIXER |
								 MIXER_GETCONTROLDETAILSF_VALUE)
		!= MMSYSERR_NOERROR)
	{
		return FALSE;
	}

	dwVal = mxcdVolume.dwValue;

	return TRUE;
}

BOOL CVolumeDlg::amdSetMasterVolumeValue(DWORD dwVal) const
{
	if (m_hMixer == NULL)
	{
		return FALSE;
	}

	MIXERCONTROLDETAILS_UNSIGNED mxcdVolume = { dwVal };
	MIXERCONTROLDETAILS mxcd;
	mxcd.cbStruct = sizeof(MIXERCONTROLDETAILS);
	mxcd.dwControlID = m_dwVolumeControlID;
	mxcd.cChannels = 1;
	mxcd.cMultipleItems = 0;
	mxcd.cbDetails = sizeof(MIXERCONTROLDETAILS_UNSIGNED);
	mxcd.paDetails = &amp;mxcdVolume;
	if (::mixerSetControlDetails(reinterpret_cast&lt;HMIXEROBJ&gt;(m_hMixer),
								 &amp;mxcd,
								 MIXER_OBJECTF_HMIXER |
								 MIXER_SETCONTROLDETAILSF_VALUE)
		!= MMSYSERR_NOERROR)
	{
		return FALSE;
	}

	return TRUE;
}
</code></pre>
<p>Was ist daran unverständlich? <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f615.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--confused_face"
      title=":confused:"
      alt="😕"
    /></p>
]]></description><link>https://www.c-plusplus.net/forum/post/1059862</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1059862</guid><dc:creator><![CDATA[WebNubbi]]></dc:creator><pubDate>Wed, 17 May 2006 20:52:08 GMT</pubDate></item><item><title><![CDATA[Reply to Systemlautstärke on Thu, 18 May 2006 13:20:31 GMT]]></title><description><![CDATA[<p>Bin halt nicht so ein Top-Programmierer....<br />
Für mich ist das leider nicht verständlich...</p>
<p>Danke trotzdem für die Hilfe. Hat sich erledigt. Werde die Funktion nicht einsetzen, da sie zu schwierig ist...</p>
<p>Tja. Merci</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1060144</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1060144</guid><dc:creator><![CDATA[Sir]]></dc:creator><pubDate>Thu, 18 May 2006 13:20:31 GMT</pubDate></item><item><title><![CDATA[Reply to Systemlautstärke on Wed, 09 Oct 2013 21:27:51 GMT]]></title><description><![CDATA[<p>Lass Dich nicht von den umfangreichen Windows-<strong>Strukturen</strong> verunsichern, sind nur Sammlungen veränderbarer Parameter.<br />
<a href="http://msdn.microsoft.com/library/default.asp?url=/library/en-us/multimed/htm/_win32_mixercontroldetails_str.asp" rel="nofollow">http://msdn.microsoft.com/library/default.asp?url=/library/en-us/multimed/htm/_win32_mixercontroldetails_str.asp</a><br />
Schau einfach aufs Wesentliche.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1061681</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1061681</guid><dc:creator><![CDATA[Erhard Henkes]]></dc:creator><pubDate>Wed, 09 Oct 2013 21:27:51 GMT</pubDate></item></channel></rss>