Unknown wave header in file

Post your questions, suggestions and experiences regarding game design, integration of external libraries here. For irrEdit, irrXML and irrKlang, see the
ambiera forums
Post Reply
khamill
Posts: 17
Joined: Thu Mar 08, 2007 3:50 pm
Location: Nova Scotia, Canada

Unknown wave header in file

Post 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
niko
Site Admin
Posts: 1759
Joined: Fri Aug 22, 2003 4:44 am
Location: Vienna, Austria
Contact:

Post 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?
khamill
Posts: 17
Joined: Thu Mar 08, 2007 3:50 pm
Location: Nova Scotia, Canada

Post by khamill »

Thanks niko,

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

thanks again

Kevin
Post Reply