ncannasse 8 лет назад
Родитель
Сommit
26dcba33c8
2 измененных файлов с 3 добавлено и 3 удалено
  1. 1 1
      hxd/res/FileTree.hx
  2. 2 2
      hxd/snd/Driver.hx

+ 1 - 1
hxd/res/FileTree.hx

@@ -125,7 +125,7 @@ class FileTree {
 
 		switch( ext.toLowerCase() ) {
 		case "wav" if( options.compressSounds ):
-			if( options.compressAsMp3 || !Context.defined("stb_ogg_sound") ) {
+			if( options.compressAsMp3 ) {
 				var tmp = options.tmpDir + name + ".mp3";
 				if( getTime(tmp) < getTime(fullPath) ) {
 					Sys.println("Converting " + relPath);

+ 2 - 2
hxd/snd/Driver.hx

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