mirror of
				https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
				synced 2025-11-03 09:01:50 -05:00 
			
		
		
		
	Merge branch 'master' of git://0pointer.de/pulseaudio
This commit is contained in:
		
						commit
						e11cd135aa
					
				
					 6 changed files with 19 additions and 13 deletions
				
			
		| 
						 | 
					@ -180,14 +180,19 @@ pulseaudio_SOURCES = \
 | 
				
			||||||
		daemon/daemon-conf.c daemon/daemon-conf.h \
 | 
							daemon/daemon-conf.c daemon/daemon-conf.h \
 | 
				
			||||||
		daemon/dumpmodules.c daemon/dumpmodules.h \
 | 
							daemon/dumpmodules.c daemon/dumpmodules.h \
 | 
				
			||||||
		daemon/ltdl-bind-now.c daemon/ltdl-bind-now.h \
 | 
							daemon/ltdl-bind-now.c daemon/ltdl-bind-now.h \
 | 
				
			||||||
		daemon/main.c \
 | 
							daemon/main.c
 | 
				
			||||||
		daemon/server-lookup.c daemon/server-lookup.h
 | 
					 | 
				
			||||||
 | 
					
 | 
				
			||||||
pulseaudio_CFLAGS = $(AM_CFLAGS) $(LIBSAMPLERATE_CFLAGS) $(LIBSPEEX_CFLAGS) $(LIBSNDFILE_CFLAGS) $(CAP_CFLAGS) $(DBUS_CFLAGS)
 | 
					pulseaudio_CFLAGS = $(AM_CFLAGS) $(LIBSAMPLERATE_CFLAGS) $(LIBSPEEX_CFLAGS) $(LIBSNDFILE_CFLAGS) $(CAP_CFLAGS)
 | 
				
			||||||
pulseaudio_LDADD = $(AM_LDADD) libpulsecore-@PA_MAJORMINORMICRO@.la libpulsecommon-@PA_MAJORMINORMICRO@.la libpulse.la $(LIBLTDL) $(LIBSAMPLERATE_LIBS) $(LIBSPEEX_LIBS) $(LIBSNDFILE_LIBS) $(CAP_LIBS) $(DBUS_LIBS)
 | 
					pulseaudio_LDADD = $(AM_LDADD) libpulsecore-@PA_MAJORMINORMICRO@.la libpulsecommon-@PA_MAJORMINORMICRO@.la libpulse.la $(LIBLTDL) $(LIBSAMPLERATE_LIBS) $(LIBSPEEX_LIBS) $(LIBSNDFILE_LIBS) $(CAP_LIBS)
 | 
				
			||||||
# This is needed because automake doesn't properly expand the foreach below
 | 
					# This is needed because automake doesn't properly expand the foreach below
 | 
				
			||||||
pulseaudio_DEPENDENCIES = libpulsecore-@PA_MAJORMINORMICRO@.la libpulsecommon-@PA_MAJORMINORMICRO@.la libpulse.la $(PREOPEN_LIBS)
 | 
					pulseaudio_DEPENDENCIES = libpulsecore-@PA_MAJORMINORMICRO@.la libpulsecommon-@PA_MAJORMINORMICRO@.la libpulse.la $(PREOPEN_LIBS)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					if HAVE_DBUS
 | 
				
			||||||
 | 
					pulseaudio_CFLAGS += $(DBUS_CFLAGS)
 | 
				
			||||||
 | 
					pulseaudio_SOURCES += daemon/server-lookup.c daemon/server-lookup.h
 | 
				
			||||||
 | 
					pulseaudio_LDADD += $(DBUS_LIBS)
 | 
				
			||||||
 | 
					endif
 | 
				
			||||||
 | 
					
 | 
				
			||||||
if PREOPEN_MODS
 | 
					if PREOPEN_MODS
 | 
				
			||||||
PREOPEN_LIBS = $(PREOPEN_MODS)
 | 
					PREOPEN_LIBS = $(PREOPEN_MODS)
 | 
				
			||||||
else
 | 
					else
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -1033,13 +1033,13 @@ static int extension_cb(pa_native_protocol *p, pa_module *m, pa_native_connectio
 | 
				
			||||||
        if ((e = read_entry(u, name))) {
 | 
					        if ((e = read_entry(u, name))) {
 | 
				
			||||||
            uint32_t idx;
 | 
					            uint32_t idx;
 | 
				
			||||||
            char *devname;
 | 
					            char *devname;
 | 
				
			||||||
            pa_bool_t available = FALSE;
 | 
					            uint32_t index = PA_INVALID_INDEX;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
            if ((devname = get_name(name, "sink:"))) {
 | 
					            if ((devname = get_name(name, "sink:"))) {
 | 
				
			||||||
                pa_sink* s;
 | 
					                pa_sink* s;
 | 
				
			||||||
                PA_IDXSET_FOREACH(s, u->core->sinks, idx) {
 | 
					                PA_IDXSET_FOREACH(s, u->core->sinks, idx) {
 | 
				
			||||||
                    if (strcmp(s->name, devname) == 0) {
 | 
					                    if (strcmp(s->name, devname) == 0) {
 | 
				
			||||||
                        available = TRUE;
 | 
					                        index = s->index;
 | 
				
			||||||
                        break;
 | 
					                        break;
 | 
				
			||||||
                    }
 | 
					                    }
 | 
				
			||||||
                }
 | 
					                }
 | 
				
			||||||
| 
						 | 
					@ -1048,7 +1048,7 @@ static int extension_cb(pa_native_protocol *p, pa_module *m, pa_native_connectio
 | 
				
			||||||
                pa_source* s;
 | 
					                pa_source* s;
 | 
				
			||||||
                PA_IDXSET_FOREACH(s, u->core->sources, idx) {
 | 
					                PA_IDXSET_FOREACH(s, u->core->sources, idx) {
 | 
				
			||||||
                    if (strcmp(s->name, devname) == 0) {
 | 
					                    if (strcmp(s->name, devname) == 0) {
 | 
				
			||||||
                        available = TRUE;
 | 
					                        index = s->index;
 | 
				
			||||||
                        break;
 | 
					                        break;
 | 
				
			||||||
                    }
 | 
					                    }
 | 
				
			||||||
                }
 | 
					                }
 | 
				
			||||||
| 
						 | 
					@ -1058,7 +1058,7 @@ static int extension_cb(pa_native_protocol *p, pa_module *m, pa_native_connectio
 | 
				
			||||||
            pa_tagstruct_puts(reply, name);
 | 
					            pa_tagstruct_puts(reply, name);
 | 
				
			||||||
            pa_tagstruct_puts(reply, e->description);
 | 
					            pa_tagstruct_puts(reply, e->description);
 | 
				
			||||||
            pa_tagstruct_puts(reply, e->icon);
 | 
					            pa_tagstruct_puts(reply, e->icon);
 | 
				
			||||||
            pa_tagstruct_put_boolean(reply, available);
 | 
					            pa_tagstruct_putu32(reply, index);
 | 
				
			||||||
            pa_tagstruct_putu32(reply, NUM_ROLES);
 | 
					            pa_tagstruct_putu32(reply, NUM_ROLES);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
            for (uint32_t i = ROLE_NONE; i < NUM_ROLES; ++i) {
 | 
					            for (uint32_t i = ROLE_NONE; i < NUM_ROLES; ++i) {
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -128,21 +128,18 @@ static void ext_device_manager_read_cb(pa_pdispatch *pd, uint32_t command, uint3
 | 
				
			||||||
 | 
					
 | 
				
			||||||
        while (!pa_tagstruct_eof(t)) {
 | 
					        while (!pa_tagstruct_eof(t)) {
 | 
				
			||||||
            pa_ext_device_manager_info i;
 | 
					            pa_ext_device_manager_info i;
 | 
				
			||||||
            pa_bool_t available;
 | 
					 | 
				
			||||||
 | 
					
 | 
				
			||||||
            memset(&i, 0, sizeof(i));
 | 
					            memset(&i, 0, sizeof(i));
 | 
				
			||||||
            available = FALSE;
 | 
					 | 
				
			||||||
 | 
					
 | 
				
			||||||
            if (pa_tagstruct_gets(t, &i.name) < 0 ||
 | 
					            if (pa_tagstruct_gets(t, &i.name) < 0 ||
 | 
				
			||||||
                pa_tagstruct_gets(t, &i.description) < 0 ||
 | 
					                pa_tagstruct_gets(t, &i.description) < 0 ||
 | 
				
			||||||
                pa_tagstruct_gets(t, &i.icon) < 0 ||
 | 
					                pa_tagstruct_gets(t, &i.icon) < 0 ||
 | 
				
			||||||
                pa_tagstruct_get_boolean(t, &available) < 0 ||
 | 
					                pa_tagstruct_getu32(t, &i.index) < 0 ||
 | 
				
			||||||
                pa_tagstruct_getu32(t, &i.n_role_priorities) < 0) {
 | 
					                pa_tagstruct_getu32(t, &i.n_role_priorities) < 0) {
 | 
				
			||||||
 | 
					
 | 
				
			||||||
                pa_context_fail(o->context, PA_ERR_PROTOCOL);
 | 
					                pa_context_fail(o->context, PA_ERR_PROTOCOL);
 | 
				
			||||||
                goto finish;
 | 
					                goto finish;
 | 
				
			||||||
            }
 | 
					            }
 | 
				
			||||||
            i.available = (uint8_t)available;
 | 
					 | 
				
			||||||
 | 
					
 | 
				
			||||||
            if (i.n_role_priorities > 0) {
 | 
					            if (i.n_role_priorities > 0) {
 | 
				
			||||||
                uint32_t j;
 | 
					                uint32_t j;
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -44,7 +44,7 @@ typedef struct pa_ext_device_manager_info {
 | 
				
			||||||
    const char *name;            /**< Identifier string of the device. A string like "sink:" or similar followed by the name of the device. */
 | 
					    const char *name;            /**< Identifier string of the device. A string like "sink:" or similar followed by the name of the device. */
 | 
				
			||||||
    const char *description;     /**< The description of the device when it was last seen, if applicable and saved */
 | 
					    const char *description;     /**< The description of the device when it was last seen, if applicable and saved */
 | 
				
			||||||
    const char *icon;            /**< The icon given to the device */
 | 
					    const char *icon;            /**< The icon given to the device */
 | 
				
			||||||
    uint8_t available;           /**< Is the device currently available? */
 | 
					    uint32_t index;              /**< The device index if it is currently available or PA_INVALID_INDEX */
 | 
				
			||||||
    uint32_t n_role_priorities;  /**< How many role priorities do we have? */
 | 
					    uint32_t n_role_priorities;  /**< How many role priorities do we have? */
 | 
				
			||||||
    pa_ext_device_manager_role_priority_info *role_priorities; /**< An array of role priority structures or NULL */
 | 
					    pa_ext_device_manager_role_priority_info *role_priorities; /**< An array of role priority structures or NULL */
 | 
				
			||||||
} pa_ext_device_manager_info;
 | 
					} pa_ext_device_manager_info;
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -24,6 +24,8 @@
 | 
				
			||||||
 | 
					
 | 
				
			||||||
#include <pulse/context.h>
 | 
					#include <pulse/context.h>
 | 
				
			||||||
#include <pulse/version.h>
 | 
					#include <pulse/version.h>
 | 
				
			||||||
 | 
					#include <pulse/volume.h>
 | 
				
			||||||
 | 
					#include <pulse/channelmap.h>
 | 
				
			||||||
 | 
					
 | 
				
			||||||
/** \file
 | 
					/** \file
 | 
				
			||||||
 *
 | 
					 *
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -31,6 +31,8 @@
 | 
				
			||||||
#include <pulse/def.h>
 | 
					#include <pulse/def.h>
 | 
				
			||||||
#include <pulse/cdecl.h>
 | 
					#include <pulse/cdecl.h>
 | 
				
			||||||
#include <pulse/operation.h>
 | 
					#include <pulse/operation.h>
 | 
				
			||||||
 | 
					#include <pulse/context.h>
 | 
				
			||||||
 | 
					#include <pulse/proplist.h>
 | 
				
			||||||
 | 
					
 | 
				
			||||||
/** \page streams Audio Streams
 | 
					/** \page streams Audio Streams
 | 
				
			||||||
 *
 | 
					 *
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue