mirror of
				https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
				synced 2025-11-03 09:01:50 -05:00 
			
		
		
		
	add dependency script
fix some dependencies split off socket-util.c and clitext.c git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@60 fefdeb5f-60dc-0310-8127-8f9354f1896f
This commit is contained in:
		
							parent
							
								
									c7bd759cdb
								
							
						
					
					
						commit
						ccfd55420e
					
				
					 28 changed files with 456 additions and 368 deletions
				
			
		
							
								
								
									
										39
									
								
								src/sink.c
									
										
									
									
									
								
							
							
						
						
									
										39
									
								
								src/sink.c
									
										
									
									
									
								
							| 
						 | 
				
			
			@ -5,10 +5,9 @@
 | 
			
		|||
 | 
			
		||||
#include "sink.h"
 | 
			
		||||
#include "sinkinput.h"
 | 
			
		||||
#include "strbuf.h"
 | 
			
		||||
#include "sample-util.h"
 | 
			
		||||
#include "namereg.h"
 | 
			
		||||
#include "util.h"
 | 
			
		||||
#include "sample-util.h"
 | 
			
		||||
 | 
			
		||||
#define MAX_MIX_CHANNELS 32
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			@ -260,42 +259,6 @@ struct pa_sink* pa_sink_get_default(struct pa_core *c) {
 | 
			
		|||
    return sink;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
char *pa_sink_list_to_string(struct pa_core *c) {
 | 
			
		||||
    struct pa_strbuf *s;
 | 
			
		||||
    struct pa_sink *sink, *default_sink;
 | 
			
		||||
    uint32_t index = PA_IDXSET_INVALID;
 | 
			
		||||
    assert(c);
 | 
			
		||||
 | 
			
		||||
    s = pa_strbuf_new();
 | 
			
		||||
    assert(s);
 | 
			
		||||
 | 
			
		||||
    pa_strbuf_printf(s, "%u sink(s) available.\n", pa_idxset_ncontents(c->sinks));
 | 
			
		||||
 | 
			
		||||
    default_sink = pa_sink_get_default(c);
 | 
			
		||||
    
 | 
			
		||||
    for (sink = pa_idxset_first(c->sinks, &index); sink; sink = pa_idxset_next(c->sinks, &index)) {
 | 
			
		||||
        char ss[PA_SAMPLE_SNPRINT_MAX_LENGTH];
 | 
			
		||||
        pa_sample_snprint(ss, sizeof(ss), &sink->sample_spec);
 | 
			
		||||
        assert(sink->monitor_source);
 | 
			
		||||
        pa_strbuf_printf(
 | 
			
		||||
            s,
 | 
			
		||||
            "  %c index: %u\n\tname: <%s>\n\tvolume: <0x%04x>\n\tlatency: <%u usec>\n\tmonitor_source: <%u>\n\tsample_spec: <%s>\n",
 | 
			
		||||
            sink == default_sink ? '*' : ' ',
 | 
			
		||||
            sink->index, sink->name,
 | 
			
		||||
            (unsigned) sink->volume,
 | 
			
		||||
            pa_sink_get_latency(sink),
 | 
			
		||||
            sink->monitor_source->index,
 | 
			
		||||
            ss);
 | 
			
		||||
 | 
			
		||||
        if (sink->owner)
 | 
			
		||||
            pa_strbuf_printf(s, "\towner module: <%u>\n", sink->owner->index);
 | 
			
		||||
        if (sink->description)
 | 
			
		||||
            pa_strbuf_printf(s, "\tdescription: <%s>\n", sink->description);
 | 
			
		||||
    }
 | 
			
		||||
    
 | 
			
		||||
    return pa_strbuf_tostring_free(s);
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
void pa_sink_set_owner(struct pa_sink *sink, struct pa_module *m) {
 | 
			
		||||
    sink->owner = m;
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue