Re: Playing a simple wave file.
From: Phil Taylor (phil_at_private-citizen.com)
Date: Tue, 21 Dec 2004 16:33:59 -0800
does the original SDK sample operate correctly?
if so, its hard to say what you didnt copy. you arent checking for any
errors, though. either the device or the buffer creation could fail.,or the
file could fail to be found. you should test buffer and device before using
them. I suspect the file load is what is failing, though. and buffer is
failing to be created.
if not,then run DXDiag and see what it says about your hw config.
"Michael" <Michael@discussions.microsoft.com> wrote in message
> Well I actually copied this program from the samples which come with the
> directx 9 sdk, which I installed.
> It stops on the last line in the program and when I added some Try and
> I only received the mesage that the an error had acurred in the
> A few weeks ago when I just started with directx, I don't remember the
> debbuger used to stop on the line where the buffer was created and said
> some of the arguments was on in the correct range.. something like that..
> as I tried asfter words I saw that the problem starts much earlier...