<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://blogs.msdn.com/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>Volume in Windows Vista, part 2: Types of volume in Windows Vista</title><link>http://blogs.msdn.com/larryosterman/archive/2007/04/04/volume-in-windows-vista-part-2-types-of-volume-in-windows-vista.aspx</link><description>Yesterday , I talked about volume in general, today I want to drill into volume more detail. In Vista, for any given audio stream, there are actually 4 different volume controls. They are: Stream Volume Simple Volume Channel Volume Endpoint Volume Each</description><dc:language>en-US</dc:language><generator>CommunityServer 2.1 SP1 (Build: 61025.2)</generator><item><title>re: Volume in Windows Vista, part 2: Types of volume in Windows Vista</title><link>http://blogs.msdn.com/larryosterman/archive/2007/04/04/volume-in-windows-vista-part-2-types-of-volume-in-windows-vista.aspx#2026572</link><pubDate>Wed, 04 Apr 2007 21:20:29 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:2026572</guid><dc:creator>Richard Albury</dc:creator><description>&lt;p&gt;I just came across this, so sorry for coming to class late. &amp;nbsp;;-)&lt;/p&gt;
&lt;p&gt;Having been away from Windows audio for some time, is Vista audio a superset of DirectShow and DirectAudio but with a managed API?&lt;/p&gt;
&lt;p&gt;Thanks,&lt;/p&gt;
&lt;p&gt;Richard&lt;/p&gt;</description></item><item><title>re: Volume in Windows Vista, part 2: Types of volume in Windows Vista</title><link>http://blogs.msdn.com/larryosterman/archive/2007/04/04/volume-in-windows-vista-part-2-types-of-volume-in-windows-vista.aspx#2026941</link><pubDate>Wed, 04 Apr 2007 22:51:25 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:2026941</guid><dc:creator>Maurits</dc:creator><description>&lt;p&gt;Where does exclusive mode fit in? &amp;nbsp;Does the endpoint volume apply?&lt;/p&gt;
</description></item><item><title>re: Volume in Windows Vista, part 2: Types of volume in Windows Vista</title><link>http://blogs.msdn.com/larryosterman/archive/2007/04/04/volume-in-windows-vista-part-2-types-of-volume-in-windows-vista.aspx#2027112</link><pubDate>Wed, 04 Apr 2007 23:33:26 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:2027112</guid><dc:creator>LarryOsterman</dc:creator><description>&lt;p&gt;Richard, it is essentially impossible to write a managed application that has to deal with isochronous data (without insane (1-2 seconds) worth of buffering). &amp;nbsp;&lt;/p&gt;
&lt;p&gt;Vista's new audio engine sits below DShow/DSound and is 100% UNMANAGED.&lt;/p&gt;
</description></item><item><title>re: Volume in Windows Vista, part 2: Types of volume in Windows Vista</title><link>http://blogs.msdn.com/larryosterman/archive/2007/04/04/volume-in-windows-vista-part-2-types-of-volume-in-windows-vista.aspx#2028322</link><pubDate>Thu, 05 Apr 2007 04:01:45 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:2028322</guid><dc:creator>Richard Albury</dc:creator><description>&lt;p&gt;Larry, thanks for the answer. &amp;nbsp;Cool: so my decade and a half of C/C++/Win32 experience still has some relevance. &amp;nbsp;;-)&lt;/p&gt;
&lt;p&gt;Time to get a Vista machine, methinks; thanks!&lt;/p&gt;</description></item><item><title>re: Volume in Windows Vista, part 2: Types of volume in Windows Vista</title><link>http://blogs.msdn.com/larryosterman/archive/2007/04/04/volume-in-windows-vista-part-2-types-of-volume-in-windows-vista.aspx#2031219</link><pubDate>Thu, 05 Apr 2007 11:29:58 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:2031219</guid><dc:creator>Tom M</dc:creator><description>&lt;p&gt;Larry, just wanted to say Kudos for the new audio engine. It sounds great; certainly much better than the old one. It's just a shame that you can no longer get hardware acceleration of DSound, especially after I spent so much on an X-Fi. It's also a shame that the new driver architecture for display drivers has resulted in such poor performance from existing hardware that I had to switch back to XP.&lt;/p&gt;</description></item><item><title>re: Volume in Windows Vista, part 2: Types of volume in Windows Vista</title><link>http://blogs.msdn.com/larryosterman/archive/2007/04/04/volume-in-windows-vista-part-2-types-of-volume-in-windows-vista.aspx#2034138</link><pubDate>Thu, 05 Apr 2007 21:08:55 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:2034138</guid><dc:creator>nks</dc:creator><description>&lt;p&gt;I don't really understand the difference between simple volume and channel volume. &amp;nbsp;Let me see if I can get it straight: &amp;nbsp;&lt;/p&gt;
&lt;p&gt;Simple volume: &amp;nbsp;Sets volume for every piece of audio playing in a program. &amp;nbsp;(After their relative volumes have already been set by the stream volimes).&lt;/p&gt;
&lt;p&gt;Channel volumes: &amp;nbsp;Sets the relative volumes of all audio going to a particular speaker from a given program, regardless of source stream. &amp;nbsp;&lt;/p&gt;
&lt;p&gt;Is this correct?&lt;/p&gt;</description></item><item><title>re: Volume in Windows Vista, part 2: Types of volume in Windows Vista</title><link>http://blogs.msdn.com/larryosterman/archive/2007/04/04/volume-in-windows-vista-part-2-types-of-volume-in-windows-vista.aspx#2034239</link><pubDate>Thu, 05 Apr 2007 21:23:37 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:2034239</guid><dc:creator>LarryOsterman</dc:creator><description>&lt;p&gt;nks: That's close enough to being right.&lt;/p&gt;
&lt;p&gt;As I said, you can logically think of it as a two part process (since each volume is an amplitude scalar between 0 and 1, multiplying the sample by the amplitude scalar performs the desired volume scaling).&lt;/p&gt;
&lt;p&gt;So setting the volume looks like:&lt;/p&gt;
&lt;p&gt;foreach channel in stream&lt;/p&gt;
&lt;p&gt;{&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; samples[channel] *= streamVolume[channel]&lt;/p&gt;
&lt;p&gt;}&lt;/p&gt;
&lt;p&gt;foreach stream in session&lt;/p&gt;
&lt;p&gt;{&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp;foreach channel in stream&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp;{&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; samples[stream][channel] *= channelVolume[channel]&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; samples[stream][channel] *= simpleVolume&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp;}&lt;/p&gt;
&lt;p&gt;}&lt;/p&gt;
</description></item><item><title>re: Volume in Windows Vista, part 2: Types of volume in Windows Vista</title><link>http://blogs.msdn.com/larryosterman/archive/2007/04/04/volume-in-windows-vista-part-2-types-of-volume-in-windows-vista.aspx#2080967</link><pubDate>Wed, 11 Apr 2007 06:15:44 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:2080967</guid><dc:creator>guoqiang lu</dc:creator><description>&lt;p&gt;It doesn't work can you show all the codes public thx!&lt;/p&gt;</description></item><item><title>re: Volume in Windows Vista, part 2: Types of volume in Windows Vista</title><link>http://blogs.msdn.com/larryosterman/archive/2007/04/04/volume-in-windows-vista-part-2-types-of-volume-in-windows-vista.aspx#2098892</link><pubDate>Thu, 12 Apr 2007 15:26:38 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:2098892</guid><dc:creator>Surge</dc:creator><description>&lt;p&gt;if I understand correctly:&lt;/p&gt;
&lt;p&gt;a session contains streams which contain channels&lt;/p&gt;
&lt;p&gt;the channel volume controls the individual channels in a stream&lt;/p&gt;
&lt;p&gt;the stream volume controls the individual streams in a session&lt;/p&gt;
&lt;p&gt;the simple volume is the master volume for a session&lt;/p&gt;
&lt;p&gt;and the endpoint volume is the master volume for a device/endpoint&lt;/p&gt;
&lt;p&gt;what I'd like to ask (I don't have Vista yet) is:&lt;/p&gt;
&lt;p&gt;Is there a mechanism for moving sessions between endpoints (without the apps/sessions noticing)? If not, would it be feasible? (as a powertoy for example)&lt;/p&gt;</description></item><item><title>re: Volume in Windows Vista, part 2: Types of volume in Windows Vista</title><link>http://blogs.msdn.com/larryosterman/archive/2007/04/04/volume-in-windows-vista-part-2-types-of-volume-in-windows-vista.aspx#2100231</link><pubDate>Thu, 12 Apr 2007 17:57:10 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:2100231</guid><dc:creator>Daniel Colascione</dc:creator><description>&lt;p&gt;Hey, thanks for explaining how Vista audio works; it's an area that we normally don't give much thought to, but that is actually quite subtle!&lt;/p&gt;</description></item><item><title>re: Volume in Windows Vista, part 2: Types of volume in Windows Vista</title><link>http://blogs.msdn.com/larryosterman/archive/2007/04/04/volume-in-windows-vista-part-2-types-of-volume-in-windows-vista.aspx#2100708</link><pubDate>Thu, 12 Apr 2007 18:43:03 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:2100708</guid><dc:creator>LarryOsterman</dc:creator><description>&lt;p&gt;Surge: No there's no mechanis for moving a session between endpoints. &amp;nbsp;Among the issues is that an endpoint has a particular format - the stream format may not be compatible with the format of the new endpoint.&lt;/p&gt;
&lt;p&gt;One error in your understanding. &amp;nbsp;The channel volume controls the individual channels for all the streams in the session. &amp;nbsp;Otherwise you're just about spot on.&lt;/p&gt;
&lt;p&gt;Daniel: It gets even more complicated when you consider capture.&lt;/p&gt;
</description></item><item><title>Background on Audio Volume in Windows Vista</title><link>http://blogs.msdn.com/larryosterman/archive/2007/04/04/volume-in-windows-vista-part-2-types-of-volume-in-windows-vista.aspx#2177257</link><pubDate>Wed, 18 Apr 2007 19:33:22 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:2177257</guid><dc:creator>All the Cool Developers use Speech APIs</dc:creator><description>&lt;p&gt;Our friend in the multimedia group and prolific blogger Larry Osterman is writing a series of articles&lt;/p&gt;
</description></item><item><title>Volume in Windows Vista, part 3: Capture volume</title><link>http://blogs.msdn.com/larryosterman/archive/2007/04/04/volume-in-windows-vista-part-2-types-of-volume-in-windows-vista.aspx#2482567</link><pubDate>Tue, 08 May 2007 19:28:42 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:2482567</guid><dc:creator>Larry Osterman's WebLog</dc:creator><description>&lt;p&gt;As anyone who's read this blog with any regularity knows, my son Daniel is a budding actor. As such,&lt;/p&gt;
</description></item><item><title>re: Volume in Windows Vista, part 2: Types of volume in Windows Vista</title><link>http://blogs.msdn.com/larryosterman/archive/2007/04/04/volume-in-windows-vista-part-2-types-of-volume-in-windows-vista.aspx#3030763</link><pubDate>Sat, 02 Jun 2007 01:06:41 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:3030763</guid><dc:creator>Florencio Mazzoldi</dc:creator><description>&lt;p&gt;I am building an ActiveX control that hosts a browser COM control. I would like to be able to programmatically (from my ActiveX code) control the sound volume of the embedded IE control. &lt;/p&gt;
&lt;p&gt;I thought if I could get an IAudioClient interface from the web browser control, I could get its ISimpleAudioVolume, and that would allow me to control the sound volume. I have tried several ways to get the IAudioClient interface from the web browser control to no avail. I have even tried to get it from the IHTMLDocument. At this point, I am not sure what else to try… &lt;/p&gt;
&lt;p&gt;Do you have any suggestions? I am on the right track for the approach? How could I obtain the IAudionClient interface from the Web Browser COM control?&lt;/p&gt;</description></item></channel></rss>