瀏覽代碼

print warning when volume>1 on hlopenal

ncannasse 7 年之前
父節點
當前提交
c20722556b
共有 1 個文件被更改,包括 3 次插入0 次删除
  1. 3 0
      hxd/snd/Manager.hx

+ 3 - 0
hxd/snd/Manager.hx

@@ -383,6 +383,9 @@ class Manager {
 			if (s.volume != v) {
 				s.volume = v;
 				driver.setSourceVolume(s.handle, v);
+				#if hlopenal
+				if( v > 1 ) Sys.println("Could not set volume " + v + " on " + c.sound);
+				#end
 			}
 
 			if (!s.playing) {