[wdmaudiodev] Re: Can MSVAD samples be built for W2K under new WDK?

  • From: "Don Bell" <0dbell@xxxxxxxxx>
  • To: wdmaudiodev@xxxxxxxxxxxxx
  • Date: Tue, 20 Mar 2007 14:18:34 -0500

Sorry - in point #2 (in my last message)I was too quick to conclude that
"Microsoft does not even hint in its documentation that the MSVAD samples
are essentially blocked for W2K."

I just found in the WDK documentation that came with the DVD (Document
Explorer ver. 8.0 format) that Windows 2000 is not listed as a supported
target OS for most of the audio samples:

ms-help://MS.WDK.v10.6000/WDM_s/hh/WDM_s/WDM_index_20e4d053-
7f44-403f-bebb-c7c34f7bbc5c.xml.htm

The documentation on the MSDN web site however is missing that entire
section on the WDM samples:

http://msdn2.microsoft.com/en-us/library/aa973498.aspx

OK - back to learning mode...

Thanks,
Don



On 3/20/07, Don Bell <0dbell@xxxxxxxxx> wrote:

Matt, thank you so much for your answer. Indeed, the original makefile for
the 'simple' sample contains the following:

=========  START QUOTE =========
!IF DEFINED(_NT_TARGET_VERSION)
!       IF $(_NT_TARGET_VERSION)>=0x501
!               INCLUDE $(NTMAKEENV)\makefile.def
!       ELSE
#               Only warn once per directory
!               INCLUDE $(NTMAKEENV)\makefile.plt
!               IF "$(BUILD_PASS)"=="PASS1"
!                   message BUILDMSG: Warning : The sample "$(MAKEDIR)" is
not
valid for the current OS target.
!               ENDIF
!       ENDIF
!ELSE
!       INCLUDE $(NTMAKEENV)\makefile.def
!ENDIF
==========  END QUOTE ==========

So, just for a quick test I (temporarily) changed it to a single line
makefile:

! INCLUDE $(NTMAKEENV)\makefile.def

And it started compiling some cpp files until it stopped with the error:

NMAKE : fatal error U1073: don't know how to make
'c:\winddk\6000\lib\w2k\i386\stdunk.lib'

I quickly found stdunk.lib' in
C:\WinDDK\6000\src\audio\stdunk\objfre_w2k_x86\i386, so I copied it to the
'c:\winddk\6000\lib\w2k\i386 folder just to see whether the build can pass.
It passed that stage but then additional errors occurred:

c:\winddk\6000\src\audio\msvad\simple\minwave.cpp(613) : error C2065:
  'KSAUDIO_SPEAKER_5POINT1_SURROUND' : undeclared identifier

c:\winddk\6000\src\audio\msvad\simple\minwave.cpp(614) : error C2065:
  'KSAUDIO_SPEAKER_7POINT1_SURROUND' : undeclared identifier

I guess that all these issues can be ironed out, but for now here is my
take on this:

1. I now understand why Microsoft commented out the W2K build in the
makefile.

2. I don't understand why Microsoft does not even hint in its
documentation that the MSVAD samples are essentially blocked for W2K.

3. I was hoping to use those sample as a learning vehicle for a beginner
like me. I guess I will stick with the XP version, until I develop some
confidence (deep understanding) in tweaking various parameters in the build
process.

Thanks again - I am now going to delve into deep learning...

Don


Other related posts: