Page 1 of 1

Unknown wave header in file

Posted: Fri Mar 16, 2007 12:41 am
by khamill
Here is my error in Visual Studio 2005

Unknown wave header in file
Could not open audio stream for sound file: ../sounds/ophelia.mp3

When I run the 3dsound tutorial, the ophelia.mp3 file plays fine. However, when I put it into my code, I get the above error. BTW, my code plays back a .wav file fine, without any problems. It appears to be a mp3 problem.

I do the normal setup:

// start the sound engine with default parameters
engine = createIrrKlangDevice();

Then I try to play the file:

ISound* music = engine->play3D("../sounds/ophelia.mp3",
core::vector3df(0,0,0), true, false, true);

IrrKlang is finding the file, but it appears to have a problem with the header. Howvwer, this the tutorial file which plays back fine uner the tutorial project.

Any ideas on what I have screwed up here...

thanks

Kevin

Posted: Fri Mar 16, 2007 7:37 am
by niko
I think the problem is that irrKlang didn't load the ikpMP3.dll plugin. Did you copy it to your working directory or where your .exe is?

Posted: Fri Mar 16, 2007 2:31 pm
by khamill
Thanks niko,

That's exactly what the problem was. It's working fine now.

thanks again

Kevin