mirror of
				https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
				synced 2025-11-03 09:01:50 -05:00 
			
		
		
		
	core: Link virtual sinks and sources to their streams.
This change doesn't add any functionality in itself, but it will be useful in the future for operating on chains of sinks or sources that are piggy-backing on each other. For example, the PA_PROP_DEVICE_MASTER_DEVICE property could be handled in the core so that each virtual device doesn't have to maintain it separately. By using the origin_sink and destination_source pointers the core is able to see at stream creation time that the stream is created by a virtual device, and then update that device's property list using the name of the master device that the stream is being connected to. The same thing can be done also when the stream is being moved from a device to another, in which case the _MASTER_DEVICE property needs updating.
This commit is contained in:
		
							parent
							
								
									1f848f82c4
								
							
						
					
					
						commit
						969c7c80fe
					
				
					 14 changed files with 34 additions and 3 deletions
				
			
		| 
						 | 
				
			
			@ -629,6 +629,7 @@ int pa__init(pa_module*m) {
 | 
			
		|||
    source_output_data.driver = __FILE__;
 | 
			
		||||
    source_output_data.module = m;
 | 
			
		||||
    source_output_data.source = master;
 | 
			
		||||
    source_output_data.destination_source = u->source;
 | 
			
		||||
    /* FIXME
 | 
			
		||||
       source_output_data.flags = PA_SOURCE_OUTPUT_DONT_INHIBIT_AUTO_SUSPEND; */
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			@ -654,6 +655,8 @@ int pa__init(pa_module*m) {
 | 
			
		|||
    u->source_output->moving = source_output_moving_cb;
 | 
			
		||||
    u->source_output->userdata = u;
 | 
			
		||||
 | 
			
		||||
    u->source->output_from_master = u->source_output;
 | 
			
		||||
 | 
			
		||||
    pa_source_put(u->source);
 | 
			
		||||
    pa_source_output_put(u->source_output);
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue