|
@@ -1,6 +1,6 @@
|
|
package hxd.snd;
|
|
package hxd.snd;
|
|
|
|
|
|
-#if (hl && !psgl)
|
|
|
|
|
|
+#if hlopenal
|
|
typedef AL = openal.AL;
|
|
typedef AL = openal.AL;
|
|
private typedef ALC = openal.ALC;
|
|
private typedef ALC = openal.ALC;
|
|
private typedef ALSource = openal.AL.Source;
|
|
private typedef ALSource = openal.AL.Source;
|
|
@@ -157,7 +157,7 @@ class Driver {
|
|
stopAll();
|
|
stopAll();
|
|
|
|
|
|
inline function arrayBytes(a:Array<Int>) {
|
|
inline function arrayBytes(a:Array<Int>) {
|
|
- #if (hl && !psgl)
|
|
|
|
|
|
+ #if hlopenal
|
|
return hl.Bytes.getArray(a);
|
|
return hl.Bytes.getArray(a);
|
|
#else
|
|
#else
|
|
var b = haxe.io.Bytes.alloc(a.length * 4);
|
|
var b = haxe.io.Bytes.alloc(a.length * 4);
|