소스 검색

changed snd manager suspended behavior : virtualize all channels

Nicolas Cannasse 6 년 전
부모
커밋
4d61797cca
1개의 변경된 파일1개의 추가작업 그리고 4개의 파일을 삭제
  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;
 		}