Sfoglia il codice sorgente

print warning when volume>1 on hlopenal

ncannasse 7 anni fa
parent
commit
c20722556b
1 ha cambiato i file con 3 aggiunte e 0 eliminazioni
  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) {