whenever I use haxelib name=“multicast” in the .xml and import multicast.Client; at the top of a clean project main file. Anyone have problems with OpenALAudioContext .hx colliding with something else maybe ?
Openfl 8.4.1
Lime 7.0.0
HXCPP 4.0.4
maybe my haxe version is too old for this, am at 3.4.4.
If I build a sample, such as “DisplayingABitmap” it all goes well. Adding import multicast.Client; to it makes it freak out on OpenALAudioContext.h.
What’s the haxe version one should have installed at this point, is it in a range or is it a specific version?
Asking because I just noticed “Works with hxcpp 3.4.49 up to the current release 4.0.4.” and am on 3.4.4.
So maybe that’s it, or maybe not.
Btw, the lines it is failing on are:
public var MAX_DISTANCE:Int = 0x1023;
public var SEC_OFFSET:Int = 0x1024;
public var INVALID_DEVICE:Int = 0xA001;
Suddenly I ran into the same problem. I am using the Fmod Library ( https://www.fmod.com/ ) as an extern class to play audio and to use data from there fft spectrum function to display the audio graphically.
But from one day to the other without changing anything (in my opinion) I get the very same error.
I really don’t know what is broken now, because it always ran without problems.
Because I even don’t need the OpenAL Library at all, the solution to exclude this library would help too, because I am playing the audio with the fmod library anyway.
But of course it did nothing, because I don’t have a lime dev version an no sources.
But first I thought the error was gone.
I did
lime rebuild windows
to test it again, and it worked too.
But then I found the real error:
WHEN ADDING A STATIC VAR to the Main.hx like
public static var TEST_VAR:Bool = false;
then this error occurs. And it doesn’t matter what data-type the static var is or if it is private or public.
I can use static vars in all other .hx Class-Files I have, but when I have a static var in the Main.hx Class, then this error happens.
Strange thing …
So I renamed the Main.hx to SoundVisualizer.hx and made a new Main.hx that just creates a new SoundVisualizer(). And now I can have static vars in the Main.hx and in all the other Classes I have except the Class that has the