mirror of
				https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
				synced 2025-11-03 09:01:50 -05:00 
			
		
		
		
	equalizer: Use sink_master as the module argument rather than just master.
This brings more uniformity to arguments to match module-echo-cancel (which needs both sink and source masters, hence the disambiguation). This will allow other modules to load filters in a more uniform way in the future without kludges to deal with variation in arguments.
This commit is contained in:
		
							parent
							
								
									aaab340d4e
								
							
						
					
					
						commit
						34658927a3
					
				
					 1 changed files with 3 additions and 3 deletions
				
			
		| 
						 | 
					@ -79,7 +79,7 @@ PA_MODULE_LOAD_ONCE(FALSE);
 | 
				
			||||||
PA_MODULE_USAGE(
 | 
					PA_MODULE_USAGE(
 | 
				
			||||||
        _("sink_name=<name of the sink> "
 | 
					        _("sink_name=<name of the sink> "
 | 
				
			||||||
          "sink_properties=<properties for the sink> "
 | 
					          "sink_properties=<properties for the sink> "
 | 
				
			||||||
          "master=<sink to connect to> "
 | 
					          "sink_master=<sink to connect to> "
 | 
				
			||||||
          "format=<sample format> "
 | 
					          "format=<sample format> "
 | 
				
			||||||
          "rate=<sample rate> "
 | 
					          "rate=<sample rate> "
 | 
				
			||||||
          "channels=<number of channels> "
 | 
					          "channels=<number of channels> "
 | 
				
			||||||
| 
						 | 
					@ -133,7 +133,7 @@ struct userdata {
 | 
				
			||||||
static const char* const valid_modargs[] = {
 | 
					static const char* const valid_modargs[] = {
 | 
				
			||||||
    "sink_name",
 | 
					    "sink_name",
 | 
				
			||||||
    "sink_properties",
 | 
					    "sink_properties",
 | 
				
			||||||
    "master",
 | 
					    "sink_master",
 | 
				
			||||||
    "format",
 | 
					    "format",
 | 
				
			||||||
    "rate",
 | 
					    "rate",
 | 
				
			||||||
    "channels",
 | 
					    "channels",
 | 
				
			||||||
| 
						 | 
					@ -1088,7 +1088,7 @@ int pa__init(pa_module*m) {
 | 
				
			||||||
        goto fail;
 | 
					        goto fail;
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    if (!(master = pa_namereg_get(m->core, pa_modargs_get_value(ma, "master", NULL), PA_NAMEREG_SINK))) {
 | 
					    if (!(master = pa_namereg_get(m->core, pa_modargs_get_value(ma, "sink_master", NULL), PA_NAMEREG_SINK))) {
 | 
				
			||||||
        pa_log("Master sink not found");
 | 
					        pa_log("Master sink not found");
 | 
				
			||||||
        goto fail;
 | 
					        goto fail;
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue