Original Post
Hi, I am using C++ and FMod. I am trying to play an mp3. My code compiles, but I keep getting and error when I run the exe file: "An unhandled exception of type 'System.TypeLoadException' occured." Aditional info: Could not load type FSOUND_SAMPLE from assembly. Culture=neutral, publickeytoken=null //this is where the problem lies. I debug and it stops on the line 'm_sampSoundHandle=FSOUND_Sample_Load(FSOUND_FREE,sFilename.c_str(),0,0,0);' Can someone help? I'm sure lots of people use Fmod, and can solve my problem. [Edited by - utilae on April 9, 2005 4:45:32 AM]
void CSoundManager::LoadSound(const string &sFilename)
{
//load sound
m_sampSoundHandle=FSOUND_Sample_Load(FSOUND_FREE,sFilename.c_str(),0,0,0);
}