mirror of
				https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
				synced 2025-11-03 09:01:50 -05:00 
			
		
		
		
	* add first part of zeroconf publisher
* bump version to 0.7.1. * improve logging subsystem (introducing log levels) * remove verbose flag on cli * add new API pa_sample_format_to_string() * replace strtol() by usages of pa_atou() and pa_atoi() git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@317 fefdeb5f-60dc-0310-8127-8f9354f1896f
This commit is contained in:
		
							parent
							
								
									5be9641ffe
								
							
						
					
					
						commit
						73eabece33
					
				
					 38 changed files with 467 additions and 280 deletions
				
			
		| 
						 | 
				
			
			@ -37,6 +37,7 @@ struct pa_source_output* pa_source_output_new(struct pa_source *s, const char *n
 | 
			
		|||
    struct pa_source_output *o;
 | 
			
		||||
    struct pa_resampler *resampler = NULL;
 | 
			
		||||
    int r;
 | 
			
		||||
    char st[256];
 | 
			
		||||
    assert(s && spec);
 | 
			
		||||
 | 
			
		||||
    if (pa_idxset_ncontents(s->outputs) >= PA_MAX_OUTPUTS_PER_SOURCE) {
 | 
			
		||||
| 
						 | 
				
			
			@ -73,6 +74,9 @@ struct pa_source_output* pa_source_output_new(struct pa_source *s, const char *n
 | 
			
		|||
    r = pa_idxset_put(s->outputs, o, NULL);
 | 
			
		||||
    assert(r == 0);
 | 
			
		||||
 | 
			
		||||
    pa_sample_spec_snprint(st, sizeof(st), spec);
 | 
			
		||||
    pa_log_info(__FILE__": created %u \"%s\" on %u with sample spec \"%s\"\n", o->index, o->name, s->index, st);
 | 
			
		||||
    
 | 
			
		||||
    pa_subscription_post(s->core, PA_SUBSCRIPTION_EVENT_SOURCE_OUTPUT|PA_SUBSCRIPTION_EVENT_NEW, o->index);
 | 
			
		||||
    
 | 
			
		||||
    return o;    
 | 
			
		||||
| 
						 | 
				
			
			@ -100,6 +104,8 @@ static void source_output_free(struct pa_source_output* o) {
 | 
			
		|||
    if (o->state != PA_SOURCE_OUTPUT_DISCONNECTED)
 | 
			
		||||
        pa_source_output_disconnect(o);
 | 
			
		||||
 | 
			
		||||
    pa_log_info(__FILE__": freed %u \"%s\"\n", o->index, o->name); 
 | 
			
		||||
    
 | 
			
		||||
    if (o->resampler)
 | 
			
		||||
        pa_resampler_free(o->resampler);
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue