Hi,
I am developing an Audio based application using DirectX SDK (October 2006). This application will also be executed on Windows 98 operating system. I have installed the SDK and also found some samples of DirectX application with .Net in the Samples Kit. When I executed the application on my machine (Windows XP) it worked perfectly. Then I deployed the application to a Windows 98 machine and executed it.
When I am trying to load the Audio (a .wav file) using CreateBufferFromFile Function, it throws an exception. The details of the exception are as follows -
************** Exception Text **************
Error in the application.
-2147467259 (E_FAIL)
at Microsoft.DirectX.DirectSound.Buffer.CreateBufferFromFile(String fileName, BufferDescription desc, Device parent)
at Microsoft.DirectX.DirectSound.SecondaryBuffer..ctor(String fileName, BufferDescription desc, Device parent)
at MainForm.buttonOpen_Click(Object sender, EventArgs e)
at System.Windows.Forms.Control.OnClick(EventArgs e)
at System.Windows.Forms.Button.OnClick(EventArgs e)
at System.Windows.Forms.Button.OnMouseUp(MouseEventArgs mevent)
at System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)
at System.Windows.Forms.Control.WndProc(Message& m)
at System.Windows.Forms.ButtonBase.WndProc(Message& m)
at System.Windows.Forms.Button.WndProc(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
I am quite new to DirectX and DirectSound so Can anyone help me out to solve this error. I have installed the redistributable setup of DirectX on the Windows 98 machine. I have also searched Google but could not get much information on the same.
Please Help... Urgent
Thanks and Regards
Vineed