mirror of
				https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
				synced 2025-11-03 09:01:50 -05:00 
			
		
		
		
	mix: pa_mix() is always called with more than one steam
Signed-off-by: Peter Meerwald <pmeerw@pmeerw.net>
This commit is contained in:
		
							parent
							
								
									ea5cbec0b7
								
							
						
					
					
						commit
						3963fc5e5b
					
				
					 1 changed files with 2 additions and 1 deletions
				
			
		| 
						 | 
					@ -630,11 +630,12 @@ size_t pa_mix(
 | 
				
			||||||
    pa_assert(data);
 | 
					    pa_assert(data);
 | 
				
			||||||
    pa_assert(length);
 | 
					    pa_assert(length);
 | 
				
			||||||
    pa_assert(spec);
 | 
					    pa_assert(spec);
 | 
				
			||||||
 | 
					    pa_assert(nstreams > 1);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    if (!volume)
 | 
					    if (!volume)
 | 
				
			||||||
        volume = pa_cvolume_reset(&full_volume, spec->channels);
 | 
					        volume = pa_cvolume_reset(&full_volume, spec->channels);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    if (mute || pa_cvolume_is_muted(volume) || nstreams <= 0) {
 | 
					    if (mute || pa_cvolume_is_muted(volume)) {
 | 
				
			||||||
        pa_silence_memory(data, length, spec);
 | 
					        pa_silence_memory(data, length, spec);
 | 
				
			||||||
        return length;
 | 
					        return length;
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue