0
0

Hi!
I tried to use the c# tutorials with visual c# express edition 2008, but it does not work, I instantly get error messages. Some function of fmod are not found.

And it is really annoying, that you cannot load only one example, but that all examples are loaded at once. And that they all require to be started out of the install directory of fmod. So I cannot guess what to do if I want to create such an application myself. (what libs, dlls I need, AND WHERE to put them)

  • You must to post comments
0
0

I’m not familiar with C#, but could you post your error messages here so it’s easier for us to help you? Sounds like you might have some linker problems.

  • You must to post comments
0
0

[code:uivhqde7]Error 1 ‘FMOD.System’ does not contain a definition for ‘getRecordDriverName’ and no extension method ‘getRecordDriverName’ accepting a first argument of type ‘FMOD.System’ could be found (are you missing a using directive or an assembly reference?) C:\Programme\FMOD SoundSystem\FMOD Programmers API Win32\examples_csharp\recordtodisk\recordtodisk.cs 256 33 recordtodisk

Error 2 ‘FMOD.System’ does not contain a definition for ‘getDriverName’ and no extension method ‘getDriverName’ accepting a first argument of type ‘FMOD.System’ could be found (are you missing a using directive or an assembly reference?) C:\Programme\FMOD SoundSystem\FMOD Programmers API Win32\examples_csharp\pitchdetection\pitchdetection.cs 246 33 pitchdetection

Error 3 ‘FMOD.System’ does not contain a definition for ‘getRecordDriverName’ and no extension method ‘getRecordDriverName’ accepting a first argument of type ‘FMOD.System’ could be found (are you missing a using directive or an assembly reference?) C:\Programme\FMOD SoundSystem\FMOD Programmers API Win32\examples_csharp\pitchdetection\pitchdetection.cs 260 33 pitchdetection
[/code:uivhqde7]
This is what I get.

  • You must to post comments
0
0

I am not anymore interested in it. You may delete this thread.

  • You must to post comments
0
0

I found this error too. looks like api changed, but the examples didn’t…
the examples reference two bits that have been replaced…

According to the release notes:

6/11/07 4.11.00 – Development release update

  • Added System::getDriverInfo and System::getRecordDriverInfo functions to
    replace System::getDriverName and System::getRecordDriverName. They provide
    the same functionality but now optionally provide GUIDs to uniquely identify
    a driver. GUIDs are available from DSound, WASAPI and CoreAudio output modes.

I got it to work as follows:

  1. set an easy project to default (tonegenerator) and tried to build it.. failed with 3 errors (two of the same function call)

  2. change getDriverName to getDriverInfo (1 place)
    2b. add the Fmod.Guid bit (see point4)

  3. change getRecordDriverName to getRecordDriverInfo (2 places)
    3b add the Fmod.Guid bit (see point4)

  4. for each of the 3 errors, add the FMOD.GUID to the function call(example below)… the api doco says that they can be 0, or null. however neither of those worked for me so i just did the following, which did work:

//result = system.getRecordDriverName(count, drivername, drivername.Capacity); //original non-working code

FMOD.GUID fred = new FMOD.GUID(); //new line of code

result = system.getRecordDriverInfo(count, drivername, drivername.Capacity,ref fred); //edited line of code

I’m using VS2005, and fmodEx 41708 [fmodapi41708win32-installer.exe]

When VS2005 imported the 2003 project it spat out heaps of conversion errors, which at the end of the day all worked out to be the 2 functions that had been changed.

I tried 2 or 3 of the examples and they worked fine, having a different/unrelated problem now (file not found – with the useplugins example) grr.

regards
Wayne.

  • You must to post comments
Showing 4 results
Your Answer

Please first to submit.