I am using FMODEX 4.32 version and VS 2005 C#.
While doing the example on the ‘./examples_csharp/vs2005/3d’, I’ve experienced crash for unable to find ‘FMOD_Channel_Set3Docclusion’ at DLL after the ‘playSound’ and calling for ‘set3DOcclusion’ function.
Would you know how to solve this problem?
result = system.playSound(FMOD.CHANNELINDEX.FREE, sound1, true, ref channel1);
result = channel1.set3DAttributes(ref pos1, ref vel1);
result = channel1.[color=#FF0000:2ce8g82a]set3DOcclusion[/color:2ce8g82a]( 0.0f, 1.0f); // crash!
result = channel1.setPaused(false);
- billcap asked 6 years ago
LOL, What are the chances you made a typo for me to see in your source, and there actualy is a typo in the same function in the cs file… The universe is a funny thing; funneling us towards the problem in weird ways.
Your typos was Setoccusion, right? missing the l originaly?
[quote="mathew":2ve373hk]The typo is in fmod.cs, line 3777, there should be a capital ‘O’, i.e. set3Docclusion becomes set3DOcclusion (same for get3Docclusion).
You can make the change yourself, but it will be fixed for our next release too.[/quote:2ve373hk]
I fixed it as you told me to and it is now working. Thank you. 😀
Please login first to submit.