Преглед изворни кода

fixed AL emulation with latest driver

ncannasse пре 8 година
родитељ
комит
a7019a9153
1 измењених фајлова са 4 додато и 0 уклоњено
  1. 4 0
      hxd/snd/ALEmulator.hx

+ 4 - 0
hxd/snd/ALEmulator.hx

@@ -300,6 +300,8 @@ class ALEmulator {
 	}
 	public static function source3f(source : Source, param : Int, value1 : F32, value2 : F32, value3 : F32) {
 		switch( param ) {
+		case POSITION, VELOCITY, DIRECTION:
+			// nothing
 		default:
 			throw "Unsupported param 0x" + StringTools.hex(param);
 		}
@@ -319,6 +321,8 @@ class ALEmulator {
 			source.currentSample = 0;
 		case LOOPING:
 			source.loop = value != 0;
+		case SOURCE_RELATIVE:
+			// nothing
 		default:
 			throw "Unsupported param 0x" + StringTools.hex(param);
 		}