mirror of
				https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
				synced 2025-11-03 09:01:50 -05:00 
			
		
		
		
	core: introduce new 'reference' volume for sinks
The reference volume is to be used as reference volume for stored stream volumes. Previously if a new stream was created the relative volume was taken relatively to the virtual device volume. Due to the flat volume logic this could then be fed back to the virtual device volume. Repeating the whole story over and over would result in a device volume that would go lower, and lower and lower. This patch introduces a 'reference' volume for each sink which stays unmodified by stream volume changes even if flat volumes are used. It is only modified if the sink volumes are modified directly by the user. For further explanations see http://pulseaudio.org/wiki/InternalVolumes
This commit is contained in:
		
							parent
							
								
									49dcf0940e
								
							
						
					
					
						commit
						fe8b10cc05
					
				
					 15 changed files with 152 additions and 159 deletions
				
			
		| 
						 | 
				
			
			@ -191,7 +191,7 @@ static void subscribe_callback(pa_core *c, pa_subscription_event_type_t t, uint3
 | 
			
		|||
 | 
			
		||||
        name = pa_sprintf_malloc("sink:%s", sink->name);
 | 
			
		||||
        entry.channel_map = sink->channel_map;
 | 
			
		||||
        entry.volume = *pa_sink_get_volume(sink, FALSE);
 | 
			
		||||
        entry.volume = *pa_sink_get_volume(sink, FALSE, TRUE);
 | 
			
		||||
        entry.muted = pa_sink_get_mute(sink, FALSE);
 | 
			
		||||
 | 
			
		||||
    } else {
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue