Browse Source

openAl error: show error code

trethaller 6 năm trước cách đây
mục cha
commit
90e41fb02f
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  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) {