Hi everyone,
I am trying to get some sounds working through FMOD in openFrameworks. But I can’t seem to find why I am getting the following error on running my code. I first tried to use ofxFmodSoundPlayer2, but this was also giving this error. So I copied the part that is giving an issue to a fresh project, to see if I could find what is happening. But I cant seem to get it working…
static FMOD_SYSTEM * sys;
static int ofxFmodNumDevices = 0;
static std::vectorstd::string ofxFmodDeviceNames;
//--------------------------------------------------------------
void ofApp::setup(){
FMOD_System_Create(&sys);
// **************************** SELECT DEVICE **************************
static bool listCreated = false;
if (listCreated == false) {
FMOD_System_GetNumDrivers(sys, &ofxFmodNumDevices);
for (int i = 0; i < ofxFmodNumDevices; i++) { char name[256]; FMOD_System_GetDriverInfo(sys, i, name, 256, 0); ofxFmodDeviceNames.push_back(name); }
}
}
It crashes on running the function the FMOD_System_GetDriverInfo(sys,i,name,256,0); And I get the following error:
Can’t find access point of procedure FMOD_System_GetDriverInfo in DLL file D:*projectdir\bin*projectname.exe**
EDIT: Or maybe (because i am not sure about the correct translation, I got the error in dutch): The procedure entry point FMOD_System_GetDriverInfo could not be located in file D:*projectdir\bin*projectname.exe**
I understand this problems normally occur when a DLL and the Application.EXE are at conflicting maintenance levels.
But I have no clue what this has to do with this function because without the function the application is running fine. Except that no sounds will work because it is missing an important part of the code of-course.
Does anyone have an idea what is going on here?
Thanks in advance
Alexander