Explorar o código

changed snd manager suspended behavior : virtualize all channels

Nicolas Cannasse %!s(int64=6) %!d(string=hai) anos
pai
achega
4d61797cca
Modificáronse 1 ficheiros con 1 adicións e 4 borrados
  1. 1 4
      hxd/snd/Manager.hx

+ 1 - 4
hxd/snd/Manager.hx

@@ -271,9 +271,6 @@ class Manager {
 	}
 
 	public function update() {
-
-		if( suspended ) return;
-
 		now = haxe.Timer.stamp() + timeOffset;
 
 		if (driver == null) {
@@ -375,7 +372,7 @@ class Manager {
 			c.calcAudibleVolume(now);
 			if( c.isLoading && !c.sound.getData().isLoading() )
 				c.isLoading = false;
-			c.isVirtual = c.pause || c.mute || c.channelGroup.mute || (c.allowVirtual && c.audibleVolume < VIRTUAL_VOLUME_THRESHOLD) || c.isLoading;
+			c.isVirtual = suspended || c.pause || c.mute || c.channelGroup.mute || (c.allowVirtual && c.audibleVolume < VIRTUAL_VOLUME_THRESHOLD) || c.isLoading;
 			c = c.next;
 		}