<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	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/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Create Digital Music &#187; kernel</title>
	<atom:link href="http://createdigitalmusic.com/tag/kernel/feed/" rel="self" type="application/rss+xml" />
	<link>http://createdigitalmusic.com</link>
	<description>Making music with technology</description>
	<lastBuildDate>Fri, 25 May 2012 21:05:58 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.1.4</generator>
		<item>
		<title>Going Native: New Pro Tools HD Native, Your DAW, and Low-Latency Performance</title>
		<link>http://createdigitalmusic.com/2010/10/going-native-new-pro-tools-hd-native-your-daw-and-low-latency-performance/</link>
		<comments>http://createdigitalmusic.com/2010/10/going-native-new-pro-tools-hd-native-your-daw-and-low-latency-performance/#comments</comments>
		<pubDate>Wed, 06 Oct 2010 17:23:16 +0000</pubDate>
		<dc:creator>Peter Kirn</dc:creator>
				<category><![CDATA[News]]></category>
		<category><![CDATA[analysis]]></category>
		<category><![CDATA[audio-interfaces]]></category>
		<category><![CDATA[Avid]]></category>
		<category><![CDATA[DAWs]]></category>
		<category><![CDATA[Hardware]]></category>
		<category><![CDATA[HD]]></category>
		<category><![CDATA[industry]]></category>
		<category><![CDATA[kernel]]></category>
		<category><![CDATA[latency]]></category>
		<category><![CDATA[low-latency]]></category>
		<category><![CDATA[Mac]]></category>
		<category><![CDATA[performance]]></category>
		<category><![CDATA[previews]]></category>
		<category><![CDATA[Pro-Tools]]></category>
		<category><![CDATA[pro-tools-hd]]></category>
		<category><![CDATA[pro-tools-native]]></category>
		<category><![CDATA[production]]></category>
		<category><![CDATA[snow-leopard]]></category>
		<category><![CDATA[Software]]></category>
		<category><![CDATA[Studios]]></category>
		<category><![CDATA[TDM]]></category>
		<category><![CDATA[trends]]></category>
		<category><![CDATA[Windows]]></category>
		<category><![CDATA[windows-7]]></category>

		<guid isPermaLink="false">http://createdigitalmusic.com/?p=13979</guid>
		<description><![CDATA[For some time, the move has seemed inevitable &#8211; even more so as the rumor mill started echoing with suggestions that a native release was coming. But now, it&#8217;s happened: Pro Tools HD will now run without HD DSP hardware. And that&#8217;s not all &#8212; you can also use the same hardware with your existing &#8230; <a class="btn read-more" href="http://createdigitalmusic.com/2010/10/going-native-new-pro-tools-hd-native-your-daw-and-low-latency-performance/">Continue &#8594;</a>]]></description>
			<content:encoded><![CDATA[<p><img src="http://createdigitalmusic.com/files/2010/10/pthdnative.jpg" alt="" title="pthdnative" width="580" height="423" class="alignnone size-full wp-image-13991" /></p>
<p>For some time, the move has seemed inevitable &#8211; even more so as the rumor mill started echoing with suggestions that a native release was coming. But now, it&#8217;s happened: Pro Tools HD will now run <em>without</em> HD DSP hardware. And that&#8217;s not all &#8212; you can also use the same hardware with your existing DAW of choice, for users of software like Cubase and Logic.</p>
<p>There&#8217;s a price tag attached, though. This remains what for many would be a high-end solution. At US$3495 retail and up, it&#8217;s not competition for buying a basic interface card and Cubase. Think, instead, a more affordable and flexible way to equip studio rigs, and some potentially serious competition for vendors like Apogee, especially since you can use any DAW you want. </p>
<p>Just to say that again: Avid is making a version of Pro Tools HD that runs on the CPU and supports any DAW on Windows 7 or Mac OS X Snow Leopard and higher.</p>
<p>The AIR (Avid) user blog has some terrific analysis on the announcement even before it became public, comparing leaked price info for Native to an Apogee rig. If you haven&#8217;t been reading the AIR blog, they&#8217;ve hardly been shills for Avid; they&#8217;ve savaged some of the company&#8217;s decisions. And they&#8217;re actually pretty positive here. (Spoiler: Avid winds up being cheaper than Apogee by a few hundred bucks in their calculus.)<br />
<a href="http://www.airusersblog.com/home-page/2010/10/6/is-an-avid-pro-tools-hd-native-core-system-expensive.html">Is An Avid Pro Tools HD Native Core System Expensive?</a></p>
<p>What you get for that investment, though, is something worth discussing. It also reveals what&#8217;s necessary to get real, low-latency audio operation, which is relevant even if you aren&#8217;t in the market for Pro Tools|HD Native. CDM gets some insight into that from the developers.</p>
<p>First, Pro Tools|HD Native at a glance. Bundles:</p>
<p><strong>Native core:</strong> $3495 buys you the necessary PCIe native card plus Pro Tools HD 8.5 software. The card comes with two Digilink mini ports on it.</p>
<p><strong>Native core + OMNI</strong> Add an HD OMNI interface to the above. Total: US$5995.</p>
<p><strong>Native core + HD I/O 8x8x8</strong> Get a full 8x8x8 HD I/O interface. Total cost: US$6995.</p>
<p><strong>Native core + HD I/O 16&#215;16 analog</strong> US$7995.</p>
<p><strong>Availability:</strong> November 4.</p>
<p>So, why bother with &#8220;HD Native&#8221; when there are versions like LE? The difference is that some of the more serious studio features remain:<span id="more-13979"></span></p>
<ul>
<li>Surround, VCA mixing</li>
<li>Destructive/track punch, advanced automation</li>
<li>Solo Bus AFL/PFL, track-based input monitoring</li>
<li>Sync HD support</li>
<li>9-pin Machine Control</li>
<li><strong>Venue support</strong>. (Yeah, that&#8217;s pretty huge, since Venue rigs don&#8217;t necessarily need all the TDM stuff.</li>
</ul>
<p><img src="http://createdigitalmusic.com/files/2010/10/pthd_nativecard.jpg" alt="" title="pthd_nativecard" width="580" height="396" class="alignnone size-full wp-image-13993" /></p>
<div class="imgcaption">This is what makes it all work: an I/O card for a PCI slot on your Mac or PC desktop.</div>
<p>This isn&#8217;t a TDM solution, though, so you don&#8217;t get TDM plug-in support, which for many is one of the big draws of Pro Tools. That includes the recently-announced HEAT, an analog-modeling sonic sweetener based on the qualities of tape. (There&#8217;s more to say about HEAT; I just got off the phone with its talented designer Dave Hill, so expect the results of that interview soon.)</p>
<p>It is a significant &#8220;mid-range&#8221; studio solution, and will likely fill a big need for Pro Tools customers. Avid told CDM in a briefing yesterday that they&#8217;ve gotten enormous demand for just such a solution. Just doing a discounted upgrade to HD got a big response, and users have wanted something between LE and the TDM-based HD for project or secondary studios. It also seems to me that it demonstrates Avid is willing to change, which could have greater implications down the road.</p>
<p>What you get is, says Avid, not a replacement for their DSP solutions, but otherwise unrestricted in sync, I/O, and functionality. It has the mixing and I/O LE lacks, and it even supports legacy &#8220;blue&#8221; HD converters (192, etc.), making it a likely candidate for upgrading studio setups that didn&#8217;t make the leap to 8.5 software.</p>
<p>If you don&#8217;t want to use Pro Tools as your DAW, you get 64 channels of I/O with any Core Audio (Mac) or ASIO (PC) system. Avid says they&#8217;ve tested extensively with Logic and Nuendo; Digital Performer, SONAR, and others should work, too.</p>
<p>And, notably, it&#8217;s a native system with extraordinarily low latency. Pro Tools|HD does .44 ms (at 96k and a 64 sample &#8212; yes, sixty-four total &#8211; buffer). But HD Native does a very respectable 1.6 ms; less than half that if you choose direct monitoring while recording, which you can do with simple stereo monitoring or even 7.1 surround setups. That&#8217;s 1.6 ms through the native setup, through PCI, and through the kernel and operating system. We&#8217;ve heard those kinds of theoretical numbers, but it&#8217;s a big deal to get it consistently on a computer system with a single, stable setup.</p>
<p><img src="http://createdigitalmusic.com/files/2010/10/pthd_card_34.jpg" alt="" title="pthd_card_34" width="580" height="413" class="alignnone size-full wp-image-13996" /></p>
<div class="imgcaption">A closer look at the native card. Mmmm&#8230; heat sink.</div>
<h3>The Latency Story</h3>
<p>I was curious to hear more about how Pro Tools|HD Native achieves those low latencies. The answer says something about the direction of Pro Tools, but also the potential of native computers for this sort of processing in general, regardless of the tool you use. (And that&#8217;s the sort of information we like.)</p>
<p>Bobby Lombardi, head of Pro Tools Product Management, explains to CDM:</p>
<blockquote><p>The magic answer to all this is the Core Audio/ASIO “safety buffer” which is an additional layer of latency used by third party IO manufacturers (HW) manufacturers who provide Core Audio drivers for their HW. We also use a safety buffer for all of our hardware (including LE and M-Audio) that have Core Audio and ASIO drivers.</p>
<p>A safety buffer can have a very wide range of values. PCIe based hardware IO is the best case where manufacturers could theoretically get down to a 9 sample buffer, and go as high as several hundred samples for USB devices.</p>
<p>The key for a high-performance, low-latency system is PCIe-based IO and quality low-latency converters. This is the main reason why a PCI-based Pro Tools HD Native system combined with an HD IO has such exceptional latency. </p>
<p>The story gets even better at 96kHz sample rates where most converter latencies where the host CPU latency halves itself, and many high-end converters are capable of a low-latency converter mode without sacrificing quality. Our new HD IO and OMNI IO have such converters and perform in a low-latency performance mode when used at 88.2 and higher sample rates.</p>
<p>So to recap. The best possible latency story for Pro Tools HD Native using AD/DA converters is:</p>
<p>Pro Tools HD Native<br />
Pro Tools HD Software @ 96kHz, 64 sample playback buffer<br />
HD IO or HD OMNI interfaces</p></blockquote>
<p>If anyone wants to get deeper into these issues with Avid (or anyone else), let me know; I&#8217;m game.</p>
<h3>Don&#8217;t Write Off TDM Yet</h3>
<p>Worth saying: this is probably good news for the future of DSP-based, TDM Pro Tools systems, not bad. The business advantage for Avid is, they sell more hardware and software, and keep more people on their platform. (I don&#8217;t think they can be faulted for that.)</p>
<p>But if you&#8217;re wondering, why bother with the pricier TDM systems at all, the story there doesn&#8217;t really change. As Avid puts it, TDM&#8217;s advantages don&#8217;t suffer when your CPU becomes more powerful. That just means you can use all the horsepower of the CPU <em>and</em> all the additional DSP processing of the HD TDM iron. Some of their customers are also using pretty extreme use cases, like recording 500 channels a time of a symphony orchestra. (I got an angry note regarding Logic Pro after writing a review of Apple&#8217;s DAW for <em>Macworld</em> where someone complained that Logic was choking over just sort a setup. Naturally, as a home producer, I had neither tested &#8211; nor could really conceive &#8211; what that setup looked like.)</p>
<p>There&#8217;s also time. Developing highly-optimized TDM plug-ins in Assembler is a different game from writing RTAS (or VST, or AU, etc.) plug-ins in C, and not everyone will port from one to the other.</p>
<p>What&#8217;s interesting to me, though, is that some of these issues transcend usage scenarios, budget, and the like. I don&#8217;t doubt that every musician would love 1.5 ms latency. And those fundamental architectural issues I believe will continue to be relevant for the entire musical community &#8211; whether their tools count as particularly &#8220;Pro&#8221; or not.</p>
<div style="float: right; margin-left: 10px;"><a href="http://twitter.com/share?url=http://createdigitalmusic.com/2010/10/going-native-new-pro-tools-hd-native-your-daw-and-low-latency-performance/&via=cdmblogs&text=Going Native: New Pro Tools HD Native, Your DAW, and Low-Latency Performance&related=:&lang=en&count=horizontal" class="twitter-share-button">Tweet</a><script type="text/javascript" src="http://platform.twitter.com/widgets.js"></script></div><div style="float: right; margin-left: 10px;"><a href="http://twitter.com/share?url=http://createdigitalmusic.com/2010/10/going-native-new-pro-tools-hd-native-your-daw-and-low-latency-performance/&via=cdmblogs&text=Going Native: New Pro Tools HD Native, Your DAW, and Low-Latency Performance&related=:&lang=en&count=horizontal" class="twitter-share-button">Tweet</a><script type="text/javascript" src="http://platform.twitter.com/widgets.js"></script></div><div class='wpfblike' style='height: 40px;'><iframe src='http://www.facebook.com/plugins/like.php?href=http://createdigitalmusic.com/2010/10/going-native-new-pro-tools-hd-native-your-daw-and-low-latency-performance/&amp;layout=default&amp;show_faces=false&amp;width=400&amp;action=like&amp;colorscheme=light&amp;send=false' scrolling='no' frameborder='0' allowTransparency='true' style='border:none; overflow:hidden; width:400px;'></iframe></div>]]></content:encoded>
			<wfw:commentRss>http://createdigitalmusic.com/2010/10/going-native-new-pro-tools-hd-native-your-daw-and-low-latency-performance/feed/</wfw:commentRss>
		<slash:comments>44</slash:comments>
		</item>
		<item>
		<title>Optimizing for Vista: Inside the Mechanics of SONAR 8 with Cakewalk Engineering</title>
		<link>http://createdigitalmusic.com/2008/09/optimizing-for-vista-inside-the-mechanics-of-sonar-8-with-cakewalk-engineering/</link>
		<comments>http://createdigitalmusic.com/2008/09/optimizing-for-vista-inside-the-mechanics-of-sonar-8-with-cakewalk-engineering/#comments</comments>
		<pubDate>Mon, 29 Sep 2008 16:12:04 +0000</pubDate>
		<dc:creator>Peter Kirn</dc:creator>
				<category><![CDATA[News]]></category>
		<category><![CDATA[advanced]]></category>
		<category><![CDATA[ASIO]]></category>
		<category><![CDATA[Benchmarks]]></category>
		<category><![CDATA[Cakewalk]]></category>
		<category><![CDATA[DAWs]]></category>
		<category><![CDATA[drivers]]></category>
		<category><![CDATA[kernel]]></category>
		<category><![CDATA[MMCSS]]></category>
		<category><![CDATA[operating-systems]]></category>
		<category><![CDATA[optimization]]></category>
		<category><![CDATA[performance]]></category>
		<category><![CDATA[SONAR]]></category>
		<category><![CDATA[sonar-8]]></category>
		<category><![CDATA[Vista]]></category>
		<category><![CDATA[WASAPI]]></category>
		<category><![CDATA[WaveRT]]></category>
		<category><![CDATA[Windows]]></category>

		<guid isPermaLink="false">http://createdigitalmusic.com/2008/09/29/optimizing-for-vista-inside-the-mechanics-of-sonar-8-with-cakewalk-engineering/</guid>
		<description><![CDATA[Vista, launched in an ice house in Toronto. That&#8217;s where I want my project studio this winter, for sure. Photo (CC Sam Javanrouh. On a purely technical level, how does Windows Vista work with a leading pro audio application? A lot of that depends on just how much the developer does to tune their software, &#8230; <a class="btn read-more" href="http://createdigitalmusic.com/2008/09/optimizing-for-vista-inside-the-mechanics-of-sonar-8-with-cakewalk-engineering/">Continue &#8594;</a>]]></description>
			<content:encoded><![CDATA[<p><a href="http://flickr.com/photos/wvs/379776536/" target="_blank"><img src="http://farm1.static.flickr.com/169/379776536_e4fe8659e9.jpg?v=0" /></a> </p>
<div class="imgcaption">Vista, launched in an ice house in Toronto. That&#8217;s where I want my project studio this winter, for sure. Photo (<a href="http://creativecommons.org/licenses/by-nc-nd/2.0/deed.en">CC</a> <a href="http://flickr.com/people/wvs/">Sam Javanrouh</a>.</div>
<p>On a purely technical level, how does Windows Vista work with a leading pro audio application? A lot of that depends on just how much the developer does to tune their software, and to hook into some of the new audio technologies in the OS.</p>
<p>I wanted to know more about how Cakewalk&rsquo;s SONAR 8 DAW was specifically optimized for Windows Vista. SONAR 7 was already out in front with support for Vista&rsquo;s audio plumbing, but SONAR 8 promises quite a bit more. With the help of CTO Noel Borthwick, we were able to go through internal engineering documents and communication and get the full story. (Noel, who has a resume as a Linux programmer as well as leading the top Windows audio developer&rsquo;s technical efforts, has been very frank in the past about Vista, walking us through changes <a href="http://createdigitalmusic.com/2007/01/19/vista-for-music-pro-audio-exclusive-under-the-hood-with-cakewalks-cto/" target="_blank">before launch</a> and real world experiences <a href="http://createdigitalmusic.com/2008/01/16/vista-for-audio-1-year-later-talking-os-plumbing-with-cakewalks-cto/" target="_blank">one year later</a>.)</p>
<p>As Noel puts it, this is &ldquo;more minute detail than most sane people would care to read,&rdquo; but that&rsquo;s just the kind of detail we like. If you just want to know whether your software will work, this is overkill. But for those of you who, like us, are interested in <em>why</em> some things work, this is a good place to start. I also sincerely hope other developers on Windows will start to invest more time in some of these details.</p>
<p>If SONAR 8&rsquo;s <em>music</em> features are what interest you, see our first look:</p>
<p><a href="http://createdigitalmusic.com/2008/09/22/sonar-8-preview-instrument-tracks-beatscape-instrument-transient-shaper-enhanced-performance-other-goodies/" target="_blank">SONAR 8 Preview: Instrument Tracks, Beatscape Instrument, Transient Shaper, Enhanced Performance, Other Goodies</a></p>
<p>I&rsquo;ll repeat my current recommendation on Windows. If you&rsquo;ve got a system running XP and you&rsquo;re happy, I&rsquo;d stick with it. But I see no reason to avoid SP1, unless you have a specifically incompatible setup, now that SP1 and driver updates have brought some maturity to the platform. I find the new OS more usable and, with the right software and drivers, even more stable. (This is <em>not</em> what I would have said before SP1, especially early after launch.) In fact, this walk-through with Noel demonstrates why, in the case of a SONAR system, you might be happier under Vista, on a point by point basis. I&rsquo;ll avoid the &ldquo;versus Mac&rdquo; or &ldquo;versus Linux&rdquo; arguments, as those tend to get more complex and abstract, but there&rsquo;s some good stuff here for those of you with Windows experience.</p>
<p>And yes, if any developer would like to do a similar tour on the Mac or Linux, I&rsquo;m all ears. But just in case you think I&rsquo;m crazy when I say there is some really robust stuff for audio in Vista, now you&rsquo;ll know just what I mean.</p>
<p> <span id="more-4187"></span><br />
<h3>CDM Executive Summary</h3>
<p><img src="http://farm4.static.flickr.com/3051/2879131134_096b1a5518.jpg?v=0" /> </p>
<div class="imgcaption">A Cakewalk SONAR-based studio, with lots of other goodies, (<a href="http://creativecommons.org/licenses/by-nc-nd/2.0/deed.en" target="_blank">CC</a>) <a href="http://benalman.com/" target="_blank">&ldquo;Cowboy&rdquo; Ben Alman</a>. And, after all, it&rsquo;s those little performance details that make a big difference in your software studio.</div>
<p>Okay, here&rsquo;s the quick run-down.</p>
<p>SONAR 8 involves improved performance optimizations, even relative to previous versions of SONAR. As far as I know, this is unparalleled progress on the Windows platform; few, if any developers are doing this kind of work. That&rsquo;s not to say you won&rsquo;t get good performance out of other Windows apps under Vista &ndash; certainly, I spend a lot of time in hosts like Ableton Live, Kore, and FL Studio on Vista &#8212; just that SONAR is leading here. (Developers out there doing similar work, we&rsquo;d love to hear from you; developers <em>not</em> doing this kind of work, I hope this can piquÃ© your interest and/or point you in the right direction, and certainly I don&rsquo;t think anyone on Windows is trying to protect &ldquo;trade secrets&rdquo; &ndash; the better this stuff works, the better for everyone.)</p>
<p>The upshot of all of this should mean:</p>
<ul>
<li>Reduced audio glitches and performance bottlenecks, thanks to improvements to the audio engine itself, as well as the way the software makes use of the kernel (which impacts drivers also using the kernel) </li>
<li>Smoother peformance in the UI as you zoom, draw, and the like </li>
<li>More efficient performance, through optimization at the driver level and by better supporting Vista&rsquo;s new audio API and threading mechanisms </li>
<li>Better support for both WDM (Windows Driver Model) and ASIO drivers, and better performance at lower latency (that&rsquo;s always the measure &ndash; you can always <em>reduce</em> latency, the question is whether you can maintain reliable audio performance when you do so) </li>
<li>x64 is now, effectively, ready for prime time latency-wise </li>
</ul>
<p>Now, here&rsquo;s Noel to say that in more technically precise terms.</p>
<h3>Performance Optimizations</h3>
<blockquote><p>Although every version of SONAR we shipped in the past had some degree of optimization work, SONAR 8 is the first version of SONAR to which we applied the same engineering process to performance optimizations as we do with other more user visible features. </p>
<p>i.e. we established goals, built a specification for the optimizations, split up the work into milestones and tracked the progress of these tasks just as we do for other features. To make testing more deterministic, we devised various internal profiling tools in order to track and measure changes in performance across a variety of hardware platforms on XP as well as Vista. </p>
<p>Systems tested included brand new cutting edge platforms from Intel and AMD as well as earlier generation machines.</p>
<p>We split up this work into the following classes of performance enhancements for SONAR 8:</p>
<p>1. CPU and kernel level optimizations &#8211; use less of your CPU to do the same amount of work      <br />2. User Interface optimizations &#8211; faster drawing, scrolling, zooming       <br />3. Driver level optimizations &#8211; more efficient access to drivers, minimizing driver state transitions       <br />4. Vista OS specific optimizations &#8211; Better use of MMCSS thread priorities, support for custom MMCSS task profiles, new WASAPI support       <br />5. Audio engine optimizations &#8211; optimize &quot;hotspots&quot; in our bussing, streaming and mixing code</p>
<p>As a result of all these changes, SONAR 8 has the following benefits:</p>
<ul>
<li>greatly minimized kernel usage. This helps provide more &quot;kernel bandwidth&quot; to drivers who need it the most. More kernel bandwidth translates into less potential for audio glitches. </li>
<li>Lower CPU usage &#8211; translates to better performance at low latency </li>
<li>More efficient use of audio drivers &#8211; esp with ASIO drivers </li>
<li>Better performance on Windows Vista esp X64 [64-bit Windows]. Many of the complaints of Vista performance as compared to XP have been solved with SONAR 8. X64 low latency performance should now be on par with X86. </li>
<li>Faster application launch </li>
<li>Less flicker in GUI. Track view splitters no longer flicker when resizing. </li>
<li>More responsive zoom and scroll with large projects. Zooming with wave files now uses 1/2 the RAM with 24-bit or less stereo or mono files used. </li>
<li>Better meter performance. </li>
<li>Improved thread scheduling by insuring threads are properly distributed on processors. </li>
</ul>
</blockquote>
<p>Benchmark: <a href="http://www.cakewalk.com/Products/SONAR/English/benchmark.asp" target="_blank">Overall benefits of SONAR 8 as compared to SONAR 7</a></p>
<p><strong>CDM: Will we see these improvements in Project5? What about your instruments, like Rapture and Dimension, running as apps (instead of inside another host)?</strong></p>
<p>Noel: We don&#8217;t have any firm plans for P5 at this time. Our &ldquo;minihosts&rdquo; for instruments don&#8217;t have these enhancements. It&rsquo;s less relevant since these are far simpler with just a single instrument.</p>
<h3>Windows Vista &#8211; New WASAPI driver mode</h3>
<p><a href="http://flickr.com/photos/zeetzjones/442805346/" target="_blank"><img src="http://farm1.static.flickr.com/204/442805346_9d0ef42d2f.jpg?v=0" /></a> </p>
<div class="imgcaption">Actually, that&rsquo;s wasaPi, not wasaBi. That said, Microsoft &ndash; how about whipping up a new WASAPI roll at the next Windows audio summit? Could be a good way to get developers to bond. Photo (<a href="http://creativecommons.org/licenses/by-nc-nd/2.0/deed.en" target="_blank">CC</a>) <a href="http://flickr.com/photos/zeetzjones/" target="_blank">Zeetz Jones</a>.</div>
<blockquote><p>WASAPI (Windows Audio Session API) is the new multimedia API to talk to audio devices in Windows Vista. It represents the first real general purpose audio API from Microsoft in over 15 years, since MME from Windows 3.1. </p>
<p>The primary advantages of WASAPI are:</p>
<ul>
<li>Supports a wide variety of audio devices (any device that has a WDM driver should work in WASAPI mode if Windows can use it in exclusive/event mode) </li>
<li>Provides low latency access to the device in WASAPI exclusive mode. (unlike older Microsoft API&#8217;s like MME or DirectSound) </li>
<li>Model that is the closest to the low level WDM kernel streaming approach, while yet providing a higher level of abstraction for the device. </li>
<li>Primary audio API for next generation of Windows. </li>
</ul>
</blockquote>
<h3>Windows Vista: WaveRT</h3>
<blockquote><p>In WDM mode WaveRT is automatically used internally when SONAR detects a WaveRT capable WDM driver. A [WaveRT] suffix is added to the driver name in this case. </p>
<p>In SONAR 6.2 we first introduced support for Vista-specific WaveRT. Direct WaveRT mode is available in SONAR when you are using WDM as a driver mode and a WaveRT capable device is detected. In Vista SP1, Microsoft made some fundamental changes to WaveRT API&rsquo;s that return the device sample position,      <br />returning a cyclic position rather than a monotonically increasing position. In SONAR 8 WaveRT support has been updated and enhanced so that it works properly with Vista SP1.</p>
</blockquote>
<p><strong>CDM: You talk about using a WaveRT driver. Do you have to do anything to switch to WaveRT?</strong></p>
<p>Noel: You don&#8217;t switch to WaveRT. In WDM [<a href="http://www.microsoft.com/whdc/archive/wdmoverview.mspx" target="_blank">Windows Driver Model</a>] mode, there is no choice &#8211; if a driver exposes itself as WaveRT, that&rsquo;s the only mode of communicating with it. The same applies in WASAPI except the difference is that WASAPI itself communicates with the driver in WaveRT mode internally.</p>
<p><strong>CDM: I have to admit, I&rsquo;m used to working with ASIO. How do I know if a device has a WDM driver?</strong></p>
<p>Noel: Any audio interface that works in Windows itself (i.e. if it shows up as a device in control panel -&gt; sounds and audio devices) HAS to have a WDM driver. Otherwise Windows will not recognise it.</p>
<p>I don&#8217;t know of any interface that provides ONLY an ASIO driver. Some provide minimal WDM drivers that aren&#8217;t tested very well.</p>
<h3>Windows Vista: MMCSS task profile support</h3>
<blockquote><p>The Multimedia Class Scheduler Service (MMCSS) provides Windows multimedia programs, including SONAR, with prioritized access to CPU resources for time-sensitive processing.</p>
<p>By default, SONAR uses the MMCSS task profile named Pro Audio. If desired, you can now instruct SONAR to use a custom user created MMCSS task profile. </p>
</blockquote>
<p><strong>CDM: Under what circumstances would you switch task profiles? What profile other than Pro Audio would you want to use?</strong></p>
<p>Noel: You can tweak the MMCSS thread settings via a custom profile. I have a profile I tweaked that works marginally better than Pro Audio. It&rsquo;s pretty technical stuff &#8211; You will have to read this link to get the details.</p>
<p><a href="http://msdn.microsoft.com/en-us/library/ms684247(VS.85).aspx">http://msdn.microsoft.com/en-us/library/ms684247(VS.85).aspx</a></p>
<p><em>Ed.: That&rsquo;s a very technical explanation of a very technical topic; for more resources &#8211;</em></p>
<p><a href="http://technet.microsoft.com/en-us/magazine/cc162494.aspx" target="_blank">Mark Russinovich tours the enhanced Vista kernel</a></p>
<p><a href="http://en.wikipedia.org/wiki/MMCSS" target="_blank">MMCSS, the Cliff Notes-style version</a> on Wikipedia</p>
<p><a href="http://blogs.technet.com/markrussinovich/archive/2007/08/27/1833290.aspx" target="_blank">Mark Russinovich on the interaction of MMCSS and networking</a></p>
<p><a href="http://forum.cakewalk.com/tm.asp?m=1427501" target="_blank">Interesting thread on the Cakewalk forum</a></p>
<h3>More Information</h3>
<p>You&rsquo;ll want to see, previously&hellip;</p>
<p><strong>Overview of Vista </strong></p>
<p><a href="http://createdigitalmusic.com/2008/07/01/adieu-xp-how-vista-sp1-is-doing-and-why-this-os-generation-has-been-so-tough/" target="_blank">Adieu, XP; How Vista SP1 is Doing, and Why This OS Generation Has Been So Tough</a></p>
<p><a href="http://createdigitalmusic.com/2008/01/16/vista-for-audio-1-year-later-talking-os-plumbing-with-cakewalks-cto/" target="_blank">Vista for Audio, 1 Year Later: Talking OS Plumbing with Cakewalk&rsquo;s CTO</a></p>
<p><a href="http://createdigitalmusic.com/2007/01/19/vista-for-music-pro-audio-exclusive-under-the-hood-with-cakewalks-cto/" target="_blank">Vista for Music + Pro Audio: Exclusive Under the Hood with Cakewalk&rsquo;s CTO</a></p>
<p><a href="http://createdigitalmusic.com/2007/11/02/windows-sound-glitches-explained-plus-glitches-and-the-fight-or-flight-response/" target="_blank">Windows Sound Glitches Explained, Plus Glitches and the Fight-or-Flight Response</a></p>
<p><strong>Compatibility</strong></p>
<p><a href="http://createdigitalmusic.com/2007/05/14/cakewalk-vista-musicians-resource-page-lots-of-vista-drivers/" target="_blank">Cakewalk Vista Musicians&rsquo; Resource Page, Lots of Vista Drivers</a></p>
<p><a href="http://createdigitalmusic.com/2008/05/21/digidesign-talks-latest-windows-mac-releases-compatibility-drivers/" target="_blank">Digidesign Talks Latest Windows, Mac Releases, Compatibility, Drivers</a></p>
<p><a href="http://createdigitalmusic.com/2008/05/16/m-audio-responds-update-on-driver-situation-new-drivers/" target="_blank">M-Audio Responds: Update on Driver Situation, New Drivers</a></p>
<p><strong>Helpful utilities</strong></p>
<p><a href="http://createdigitalmusic.com/2008/09/02/12-free-and-cheap-must-have-music-utilities-for-windows/" target="_blank">12 Free and Cheap Must-Have Music Utilities for Windows</a></p>
<p><a href="http://createdigitalmusic.com/2008/06/27/10-free-non-musical-windows-software-every-musician-should-use/" target="_blank">10 Free Non-Musical Windows Software Every Musician Should Use</a></p>
<div style="float: right; margin-left: 10px;"><a href="http://twitter.com/share?url=http://createdigitalmusic.com/2008/09/optimizing-for-vista-inside-the-mechanics-of-sonar-8-with-cakewalk-engineering/&via=cdmblogs&text=Optimizing for Vista: Inside the Mechanics of SONAR 8 with Cakewalk Engineering&related=:&lang=en&count=horizontal" class="twitter-share-button">Tweet</a><script type="text/javascript" src="http://platform.twitter.com/widgets.js"></script></div><div style="float: right; margin-left: 10px;"><a href="http://twitter.com/share?url=http://createdigitalmusic.com/2008/09/optimizing-for-vista-inside-the-mechanics-of-sonar-8-with-cakewalk-engineering/&via=cdmblogs&text=Optimizing for Vista: Inside the Mechanics of SONAR 8 with Cakewalk Engineering&related=:&lang=en&count=horizontal" class="twitter-share-button">Tweet</a><script type="text/javascript" src="http://platform.twitter.com/widgets.js"></script></div><div class='wpfblike' style='height: 40px;'><iframe src='http://www.facebook.com/plugins/like.php?href=http://createdigitalmusic.com/2008/09/optimizing-for-vista-inside-the-mechanics-of-sonar-8-with-cakewalk-engineering/&amp;layout=default&amp;show_faces=false&amp;width=400&amp;action=like&amp;colorscheme=light&amp;send=false' scrolling='no' frameborder='0' allowTransparency='true' style='border:none; overflow:hidden; width:400px;'></iframe></div>]]></content:encoded>
			<wfw:commentRss>http://createdigitalmusic.com/2008/09/optimizing-for-vista-inside-the-mechanics-of-sonar-8-with-cakewalk-engineering/feed/</wfw:commentRss>
		<slash:comments>9</slash:comments>
		</item>
	</channel>
</rss>

