From:	SMTP%"jbj@chrysalis.org"  8-NOV-1997 15:47:09.14
To:	ntdev@atria.com
CC:	
Subj:	[ntdev] OpenWaveOut() hangs under NTVDM VDD

Return-Path: owner-ntdev@atria.com
Received: by arisia.gce.com (UCX V4.1-12C, OpenVMS V7.1 VAX);
	Sat, 8 Nov 1997 15:45:41 -0500
Received: from gw.atria.com (gw.atria.com [192.88.237.2]) by mercury.mv.net (8.8.8/mem-971025) with SMTP id PAA21131 for <everhart@arisia.gce.com>; Sat, 8 Nov 1997 15:02:33 -0500 (EST)
Received: by gw.atria.com id <LAA24512@gw.atria.com> Sat, 8 Nov 1997 11:00:37 -0500    
Received: from ng.netgate.net by gw.atria.com id <LAA24503@gw.atria.com> Sat, 8 Nov 1997 11:00:33 -0500    
Received: from dragon.agatetech.com (d1.netgate.net [205.214.160.33])
	by ng.netgate.net (8.8.5/8.8.5) with SMTP id IAA24925
	for <ntdev@atria.com>; Sat, 8 Nov 1997 08:01:56 -0800 (PST)
Received: from [127.0.0.1] by dragon.agatetech.com (NTMail 3.02.13) with ESMTP id ga004842 for <ntdev@atria.com>; Sat, 8 Nov 1997 00:01:02 +0000
Received: from gw.atria.com (gw.atria.com [192.88.237.2])
	by ng.netgate.net (8.8.5/8.8.5) with SMTP id WAA21199
	for <niraj@agatetech.com>; Fri, 7 Nov 1997 22:01:32 -0800 (PST)
Received: by gw.atria.com id <UAA03445@gw.atria.com> Fri, 7 Nov 1997 20:29:31 -0500    
Received: from ttacs2.acs.ttu.edu by gw.atria.com id <UAA03435@gw.atria.com> Fri, 7 Nov 1997 20:29:27 -0500    
Received: from marc (accs12-12.ttu.edu) by TTACS.TTU.EDU (PMDF V5.1-10 #26170)
 with SMTP id <01IPQMYP2LR88Y68QU@TTACS.TTU.EDU> for ntdev@atria.com; Fri,
 7 Nov 1997 19:29:21 CST
Date: Fri, 07 Nov 1997 19:28:17 -0600
From: Brad Johnson <jbj@chrysalis.org>
Subject: [ntdev] OpenWaveOut() hangs under NTVDM VDD
X-Sender: jbj@chrysalis.org
To: ntdev@atria.com
Message-id: <3.0.5.32.19971107192817.00972410@chrysalis.org>
MIME-version: 1.0
X-Mailer: QUALCOMM Windows Eudora Pro Version 3.0.5 (32)
Content-type: text/plain; charset="us-ascii"
Sender: owner-ntdev@atria.com
Precedence: bulk

Hello,

I am writing a NT VDD for the NTVDM. I need to be able to open a waveout
device and play audio. I am having problems with waveOutOpen(). The
function never returns from my call. I have tried running this same code
under a normal VC 4.2 Win32 EXE target with no problems. Can a VDD call
this function? (they are just normal DLLs right?) Maybe there is something
wrong with the libs that I have to link to?  Please help me on this one I
have been stuck for quite a while on this one. Thanks!

--This is a snip from my Sources file--
TARGETLIBS=$(BASEDIR)\lib\*\$(DDKBUILDENV)\kernel32.lib     \
           $(BASEDIR)\lib\*\$(DDKBUILDENV)\ntvdm.lib  \
           $(BASEDIR)\lib\*\$(DDKBUILDENV)\winmm.lib  \
           $(BASEDIR)\lib\*\$(DDKBUILDENV)\user32.lib


--Snip from my vdd code--
              wfx.wFormatTag = WAVE_FORMAT_PCM;
    		  wfx.nChannels = 1;
    		  wfx.nSamplesPerSec = 22050;
    		  wfx.nAvgBytesPerSec = 22050;
    		  wfx.nBlockAlign = 1;
    		  wfx.wBitsPerSample = 8;
    		  wfx.cbSize = 0;
           // Query the device to see if the specific format is supported.
           e = waveOutOpen(&hwo,WAVE_MAPPER,&wfx,0,0,WAVE_FORMAT_QUERY);
           if (e != MMSYSERR_NOERROR){
              OutputDebugString("VDD: Format not supported by device.\n");
              return FALSE;
           } 
           else {
              OutputDebugString("VDD: Format supported by device.\n");
           }
           // open device for use

           //this line prints 
           OutputDebugString("VDD: About to try waveOutOpen().\n");

           e = waveOutOpen(&hwo,WAVE_MAPPER,&wfx,0,0,CALLBACK_NULL);

           // this line never reached under VDD
           OutputDebugString("VDD: Done with waveOutOpen().\n");
--Snip done--



Brad Johnson
(Please use PGP in e-mail if you can.)

jbj@chrysalis.org 
http://www.chrysalis.org/jbj/
PGP-mail is encouraged ! Key from homepage + servers 
Key ID = E77819E1

 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
[ To unsubscribe, send email to ntdev-request@atria.com with body
UNSUBSCRIBE (the subject is ignored). ]

 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
[ To unsubscribe, send email to ntdev-request@atria.com with body
UNSUBSCRIBE (the subject is ignored). ]
