<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	
	>
<channel>
	<title>
	Comments on: Updating speaker sound volume	</title>
	<atom:link href="https://undocumentedmatlab.com/articles/updating-speaker-sound-volume/feed" rel="self" type="application/rss+xml" />
	<link>https://undocumentedmatlab.com/articles/updating-speaker-sound-volume?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=updating-speaker-sound-volume</link>
	<description>Professional Matlab consulting, development and training</description>
	<lastBuildDate>Fri, 09 May 2014 15:52:30 +0000</lastBuildDate>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.7.2</generator>
	<item>
		<title>
		By: Yair Altman		</title>
		<link>https://undocumentedmatlab.com/articles/updating-speaker-sound-volume#comment-324603</link>

		<dc:creator><![CDATA[Yair Altman]]></dc:creator>
		<pubDate>Fri, 09 May 2014 15:52:30 +0000</pubDate>
		<guid isPermaLink="false">http://undocumentedmatlab.com/?p=652#comment-324603</guid>

					<description><![CDATA[In reply to &lt;a href=&quot;https://undocumentedmatlab.com/articles/updating-speaker-sound-volume#comment-9131&quot;&gt;Kostas&lt;/a&gt;.

The latest update should hopefully solve the issue with Windows Vista, 7 &amp; 8]]></description>
			<content:encoded><![CDATA[<p>In reply to <a href="https://undocumentedmatlab.com/articles/updating-speaker-sound-volume#comment-9131">Kostas</a>.</p>
<p>The latest update should hopefully solve the issue with Windows Vista, 7 &#038; 8</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Eric		</title>
		<link>https://undocumentedmatlab.com/articles/updating-speaker-sound-volume#comment-23135</link>

		<dc:creator><![CDATA[Eric]]></dc:creator>
		<pubDate>Fri, 19 Nov 2010 14:57:14 +0000</pubDate>
		<guid isPermaLink="false">http://undocumentedmatlab.com/?p=652#comment-23135</guid>

					<description><![CDATA[In reply to &lt;a href=&quot;https://undocumentedmatlab.com/articles/updating-speaker-sound-volume#comment-22869&quot;&gt;Niklas Rönnberg&lt;/a&gt;.

@Niklas - 
The Wave control is a compound control when it shows that message, which means that the wave volume control is a sub-control of the wave control. To access it (building off of Yair&#039;s code - by the way, thanks, Yair. This helped me a lot), use something like this (tested with WinXP, Matlab R2009a):
&lt;pre lang=&quot;matlab&quot;&gt;
% Loop over the Line&#039;s controls to find the Wave control (a compound
% control)
ctrls = line.getControls;
foundFlag = 0;
for ctrlIdx = 1 : length(ctrls)
    waveCtrl = ctrls(ctrlIdx);
    ctrlName = char(waveCtrl.getType);
    if ~isempty(strfind(lower(ctrlName),&#039;wave&#039;))
        foundFlag = 1;  break;
    end
end
if ~foundFlag
    error(&#039;Wave control not found&#039;);
end
% now find the volume control under the wave control
ctrls = waveCtrl.getMemberControls;
foundFlag = 0;
for ctrlIdx = 1:length(ctrls)
    waveVolCtrl = ctrls(ctrlIdx);
    ctrlName = char(waveVolCtrl.getType);
    if(~isempty(strfind(lower(ctrlName),&#039;volume&#039;)))
        foundFlag = 1;
        break;
    end
end
if ~foundFlag
    error(&#039;Wave volume control not found&#039;);
end
&lt;/pre&gt;]]></description>
			<content:encoded><![CDATA[<p>In reply to <a href="https://undocumentedmatlab.com/articles/updating-speaker-sound-volume#comment-22869">Niklas Rönnberg</a>.</p>
<p>@Niklas &#8211;<br />
The Wave control is a compound control when it shows that message, which means that the wave volume control is a sub-control of the wave control. To access it (building off of Yair&#8217;s code &#8211; by the way, thanks, Yair. This helped me a lot), use something like this (tested with WinXP, Matlab R2009a):</p>
<pre lang="matlab">
% Loop over the Line's controls to find the Wave control (a compound
% control)
ctrls = line.getControls;
foundFlag = 0;
for ctrlIdx = 1 : length(ctrls)
    waveCtrl = ctrls(ctrlIdx);
    ctrlName = char(waveCtrl.getType);
    if ~isempty(strfind(lower(ctrlName),'wave'))
        foundFlag = 1;  break;
    end
end
if ~foundFlag
    error('Wave control not found');
end
% now find the volume control under the wave control
ctrls = waveCtrl.getMemberControls;
foundFlag = 0;
for ctrlIdx = 1:length(ctrls)
    waveVolCtrl = ctrls(ctrlIdx);
    ctrlName = char(waveVolCtrl.getType);
    if(~isempty(strfind(lower(ctrlName),'volume')))
        foundFlag = 1;
        break;
    end
end
if ~foundFlag
    error('Wave volume control not found');
end
</pre>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Yair Altman		</title>
		<link>https://undocumentedmatlab.com/articles/updating-speaker-sound-volume#comment-22880</link>

		<dc:creator><![CDATA[Yair Altman]]></dc:creator>
		<pubDate>Tue, 16 Nov 2010 17:25:08 +0000</pubDate>
		<guid isPermaLink="false">http://undocumentedmatlab.com/?p=652#comment-22880</guid>

					<description><![CDATA[In reply to &lt;a href=&quot;https://undocumentedmatlab.com/articles/updating-speaker-sound-volume#comment-22869&quot;&gt;Niklas Rönnberg&lt;/a&gt;.

@Niklas - different computer systems have different audio devices and drivers. My article merely showed how to solve the problem for the particular configuration that exists on my system. You can use the methodology that I explained above (for exactly this purpose), in order to solve the problem for your particular configuration. If you would like my assistance in your particular case, please email me offline.

-Yair]]></description>
			<content:encoded><![CDATA[<p>In reply to <a href="https://undocumentedmatlab.com/articles/updating-speaker-sound-volume#comment-22869">Niklas Rönnberg</a>.</p>
<p>@Niklas &#8211; different computer systems have different audio devices and drivers. My article merely showed how to solve the problem for the particular configuration that exists on my system. You can use the methodology that I explained above (for exactly this purpose), in order to solve the problem for your particular configuration. If you would like my assistance in your particular case, please email me offline.</p>
<p>-Yair</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Niklas Rönnberg		</title>
		<link>https://undocumentedmatlab.com/articles/updating-speaker-sound-volume#comment-22869</link>

		<dc:creator><![CDATA[Niklas Rönnberg]]></dc:creator>
		<pubDate>Tue, 16 Nov 2010 13:49:40 +0000</pubDate>
		<guid isPermaLink="false">http://undocumentedmatlab.com/?p=652#comment-22869</guid>

					<description><![CDATA[Hi,

Thanks for this interesting blog post! I&#039;m currently developing different sound related tests in Matlab and for calibration purposes with external equipment it is important that the computer output isn&#039;t changed between the experiments. So, the above code example is really useful. However, since I&#039;m using Windows XP I have another mixer fader to worry about, and that is the Wave fader in the Windows mixer...

If I use ctrlIdx = 4 I&#039;m able to find the Wave fader, but this is not looking the same as for ctrlIdx = 1, where Matlab states &quot;Volume with current value: 0.0  (range: 0.0 - 1.0)&quot;, instead Matlab states &quot;Wave Control containing Volume, Balance, and Mute Controls.&quot;.

Do you have any suggestions how I can manage to be able to control the Wave fader as well?

Many thanks!]]></description>
			<content:encoded><![CDATA[<p>Hi,</p>
<p>Thanks for this interesting blog post! I&#8217;m currently developing different sound related tests in Matlab and for calibration purposes with external equipment it is important that the computer output isn&#8217;t changed between the experiments. So, the above code example is really useful. However, since I&#8217;m using Windows XP I have another mixer fader to worry about, and that is the Wave fader in the Windows mixer&#8230;</p>
<p>If I use ctrlIdx = 4 I&#8217;m able to find the Wave fader, but this is not looking the same as for ctrlIdx = 1, where Matlab states &#8220;Volume with current value: 0.0  (range: 0.0 &#8211; 1.0)&#8221;, instead Matlab states &#8220;Wave Control containing Volume, Balance, and Mute Controls.&#8221;.</p>
<p>Do you have any suggestions how I can manage to be able to control the Wave fader as well?</p>
<p>Many thanks!</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Yair Altman		</title>
		<link>https://undocumentedmatlab.com/articles/updating-speaker-sound-volume#comment-11806</link>

		<dc:creator><![CDATA[Yair Altman]]></dc:creator>
		<pubDate>Thu, 01 Jul 2010 15:07:13 +0000</pubDate>
		<guid isPermaLink="false">http://undocumentedmatlab.com/?p=652#comment-11806</guid>

					<description><![CDATA[In reply to &lt;a href=&quot;https://undocumentedmatlab.com/articles/updating-speaker-sound-volume#comment-11804&quot;&gt;Sebastian Pape&lt;/a&gt;.

@Sebastian - yes: the program searched all the available controls in your computer&#039;s speaker port&#039;s Line object, and could not find any control that affects the volume. I suggest that you place breakpoints in the relevant loops (lines 53-65 and 81-92) to see why this is. For example, it is possible that you have more than one speaker ports in your system and the program searched the wrong port, or maybe you really don&#039;t have programmatic access to the Volume control...]]></description>
			<content:encoded><![CDATA[<p>In reply to <a href="https://undocumentedmatlab.com/articles/updating-speaker-sound-volume#comment-11804">Sebastian Pape</a>.</p>
<p>@Sebastian &#8211; yes: the program searched all the available controls in your computer&#8217;s speaker port&#8217;s Line object, and could not find any control that affects the volume. I suggest that you place breakpoints in the relevant loops (lines 53-65 and 81-92) to see why this is. For example, it is possible that you have more than one speaker ports in your system and the program searched the wrong port, or maybe you really don&#8217;t have programmatic access to the Volume control&#8230;</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Sebastian Pape		</title>
		<link>https://undocumentedmatlab.com/articles/updating-speaker-sound-volume#comment-11804</link>

		<dc:creator><![CDATA[Sebastian Pape]]></dc:creator>
		<pubDate>Thu, 01 Jul 2010 14:17:11 +0000</pubDate>
		<guid isPermaLink="false">http://undocumentedmatlab.com/?p=652#comment-11804</guid>

					<description><![CDATA[Hi!
I used that code but I got always the message:

??? Error using ==&#062; SoundVolume2
Volume control not found

(with Win XP)

Do you have an idea what could be wrong?

Best Regards]]></description>
			<content:encoded><![CDATA[<p>Hi!<br />
I used that code but I got always the message:</p>
<p>??? Error using ==&gt; SoundVolume2<br />
Volume control not found</p>
<p>(with Win XP)</p>
<p>Do you have an idea what could be wrong?</p>
<p>Best Regards</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Kostas		</title>
		<link>https://undocumentedmatlab.com/articles/updating-speaker-sound-volume#comment-9131</link>

		<dc:creator><![CDATA[Kostas]]></dc:creator>
		<pubDate>Mon, 19 Apr 2010 22:24:51 +0000</pubDate>
		<guid isPermaLink="false">http://undocumentedmatlab.com/?p=652#comment-9131</guid>

					<description><![CDATA[Has anyone tried this code with Vista? The code runs, the input argument is stored, but the speaker volume is not affected.]]></description>
			<content:encoded><![CDATA[<p>Has anyone tried this code with Vista? The code runs, the input argument is stored, but the speaker volume is not affected.</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Yair Altman		</title>
		<link>https://undocumentedmatlab.com/articles/updating-speaker-sound-volume#comment-3419</link>

		<dc:creator><![CDATA[Yair Altman]]></dc:creator>
		<pubDate>Thu, 22 Oct 2009 23:34:17 +0000</pubDate>
		<guid isPermaLink="false">http://undocumentedmatlab.com/?p=652#comment-3419</guid>

					<description><![CDATA[In reply to &lt;a href=&quot;https://undocumentedmatlab.com/articles/updating-speaker-sound-volume#comment-3317&quot;&gt;Andrey&lt;/a&gt;.

@Andrey - Since all of the SoundVolume functionality is Java-based, you can of course place it in a Java class, compile it, and load it into Matlab using &lt;b&gt;&lt;i&gt;javaObject&lt;/i&gt;&lt;/b&gt; or even directly.

This is a Matlab-centric blog, so I focus on how things can be done in Matlab. But of course they can also be done using other means. For example, calling an external executable utility or ActiveX that does the same thing...]]></description>
			<content:encoded><![CDATA[<p>In reply to <a href="https://undocumentedmatlab.com/articles/updating-speaker-sound-volume#comment-3317">Andrey</a>.</p>
<p>@Andrey &#8211; Since all of the SoundVolume functionality is Java-based, you can of course place it in a Java class, compile it, and load it into Matlab using <b><i>javaObject</i></b> or even directly.</p>
<p>This is a Matlab-centric blog, so I focus on how things can be done in Matlab. But of course they can also be done using other means. For example, calling an external executable utility or ActiveX that does the same thing&#8230;</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Andrey		</title>
		<link>https://undocumentedmatlab.com/articles/updating-speaker-sound-volume#comment-3317</link>

		<dc:creator><![CDATA[Andrey]]></dc:creator>
		<pubDate>Sun, 18 Oct 2009 17:34:17 +0000</pubDate>
		<guid isPermaLink="false">http://undocumentedmatlab.com/?p=652#comment-3317</guid>

					<description><![CDATA[&lt;b&gt;Hi Yair!&lt;/b&gt;
As always, your posts are very interesting, thanks for this one.
What do you think about wrapping this kind of object in Java and loading it with &#039;javaobject&#039;?]]></description>
			<content:encoded><![CDATA[<p><b>Hi Yair!</b><br />
As always, your posts are very interesting, thanks for this one.<br />
What do you think about wrapping this kind of object in Java and loading it with &#8216;javaobject&#8217;?</p>
]]></content:encoded>
		
			</item>
	</channel>
</rss>
