Welcome to MSDN Blogs Sign in | Join | Help

Browse by Tags

All Tags » Win32   (RSS)
There's an MSDN sample of how to turn on HDCP or SCMS in a playback app. The sample is loosely based on a test app I wrote, but there are still some rough edges. For example, the CMFAttributeImpl<T> template is not part of the SDK or the DDK. Also, Read More...
If you're installing Windows via a boot DVD, and you choose Custom, you have the option to rearrange partitions. I like use this to have each drive be one big partition. Windows 7 wants to set aside a 100 MB partition for something-or-other. I'm sure Read More...
As preparation for moving one of my machines from Vista to Windows 7, I'm compiling a list of all the little tweaks I like to make to machines that I use a lot: Boot from the Windows DVD. Delete all partitions; make each hard drive one big partition. Read More...
Regular expressions are a tool for matching generic text. XPath queries are a tool for matching chunks of XML. Both are search technologies. When using search technologies it is occasionally quite useful to have a query that will never match anything Read More...
Sample WASAPI exclusive-mode event-driven playback app, including the HD Audio alignment dance and a version of the ac3.wav test tone with a "fact" chunk Read More...
Sample app that records what you hear using WASAPI loopback capture. Read More...
WASAPI event-driven (pull-mode) sample for rendering silence Read More...
xargs.bat listing findstr /m IFoo | xargs start Read More...
vbBretty on the audio forums asked how to tell if a given audio output and a given audio input were on the same physical audio card. Read More...
I found a simple but nasty bug the other day in this implementation of the IMFOutputSchema interface. The symptoms: running this code outside of a debugger caused the app to crash. Running it under a debugger (to catch the crash) caused the app to run clean. Read More...
In a previous post I posed several mathematical problems... I'd like to go back and give some answers to them. To reiterate, we take a sine wave period and wrap it around a cylinder... Read More...
Do the first exercise above - print out the original image, cut it out along the lines, and make a cylinder by connecting the short ends together. Rotate the cylinder through various orientations, paying particular attention to the location of the sine wave at all times. Read More...
w(i) = a sin(2πfi / s + ϕ) + c ...you'll burn through 2^32 samples in three hours, six minutes, twenty-five seconds. This is uncomfortably close to reasonable. So I fixed it - almost. Now we use a UINT64 for the sample offset. Well, it turns out that fixing that bug uncovered another bug. Exercise... what is the bug? Read More...
As of Vista RTM... HRESULT_FROM_WIN32 is NO LONGER a macro! Read More...
// most of the time, these are the same. // which one will always work? // GetTickCount() - msAtStart > msTimeout // GetTickCount() - msTimeout > msAtStart // GetTickCount() > msAtStart + msTimeOut Read More...
 
Page view tracker