Re: Playing a simple wave file.

From: Phil Taylor (
Date: 12/22/04

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" <> 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
> catch
> I only received the mesage that the an error had acurred in the
> application.
> 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
> that
> some of the arguments was on in the correct range.. something like that..
> but
> as I tried asfter words I saw that the problem starts much earlier...