Bläddra i källkod

openAl error: show error code

trethaller 6 år sedan
förälder
incheckning
90e41fb02f
1 ändrade filer med 1 tillägg och 1 borttagningar
  1. 1 1
      hxd/snd/openal/Driver.hx

+ 1 - 1
hxd/snd/openal/Driver.hx

@@ -148,7 +148,7 @@ class Driver implements hxd.snd.Driver {
 		AL.sourceQueueBuffers(source.inst, 1, bytes);
 
 		if (AL.getError() != AL.NO_ERROR)
-			throw "Failed to queue buffers : format differs";
+			throw "Failed to queue buffers: " + StringTools.hex(AL.getError());
 
 		if (AL.getSourcei(source.inst, AL.SOURCE_STATE) == AL.STOPPED) {
 			if (sampleStart > 0) {