Answered
0
0

Using this piece of code:

using UnityEngine;
using System.Collections;
using FMOD;

public class punch: MonoBehaviour {

FMOD.RESULT result;
FMOD.System system;
FMOD.ChannelGroup channelGroup;

void Start () {

    result = FMOD.Factory.System_Create (out system);
    result = system.createChannelGroup (null, out channelGroup);
   }
}

crashes Unity 4 on Mac and Win7(x64), telling “access violation” takes place.
The “system.createChannelGroup” line is the one causing crashing as I figured.
I’m lost!

  • You must to post comments
Best Answer
0
0

Figured one this one by myself, I had to call init() on system first before using it with createChannelGroup.

result = FMOD.Factory.System_Create (out system);
result = system.init (32, FMOD.INITFLAGS.NORMAL, extradriverdata);
result = system.createChannelGroup (null, out channelGroup);
  • You must to post comments
Showing 1 result
Your Answer

Please first to submit.