diff options
Diffstat (limited to 'src/utils')
| -rw-r--r-- | src/utils/pactl.c | 22 | ||||
| -rw-r--r-- | src/utils/pasuspender.c | 2 | 
2 files changed, 17 insertions, 7 deletions
diff --git a/src/utils/pactl.c b/src/utils/pactl.c index 141ab5b1..ee67c425 100644 --- a/src/utils/pactl.c +++ b/src/utils/pactl.c @@ -44,8 +44,6 @@  #include <pulsecore/log.h>  #include <pulsecore/sndfile-util.h> -#define BUFSIZE (16*1024) -  static pa_context *context = NULL;  static pa_mainloop_api *mainloop_api = NULL; @@ -158,10 +156,23 @@ static void get_server_info_callback(pa_context *c, const pa_server_info *i, voi          return;      } +    printf(_("Server String: %s\n" +             "Library Protocol Version: %u\n" +             "Server Protocol Version: %u\n" +             "Is Local: %s\n" +             "Client Index: %u\n" +             "Tile Size: %zu\n"), +             pa_context_get_server(c), +             pa_context_get_protocol_version(c), +             pa_context_get_server_protocol_version(c), +             pa_yes_no(pa_context_is_local(c)), +             pa_context_get_index(c), +             pa_context_get_tile_size(c, NULL)); +      pa_sample_spec_snprint(ss, sizeof(ss), &i->sample_spec);      pa_channel_map_snprint(cm, sizeof(cm), &i->channel_map); -    printf(_("User name: %s\n" +    printf(_("User Name: %s\n"               "Host Name: %s\n"               "Server Name: %s\n"               "Server Version: %s\n" @@ -169,7 +180,7 @@ static void get_server_info_callback(pa_context *c, const pa_server_info *i, voi               "Default Channel Map: %s\n"               "Default Sink: %s\n"               "Default Source: %s\n" -             "Cookie: %08x\n"), +             "Cookie: %04x:%04x\n"),             i->user_name,             i->host_name,             i->server_name, @@ -178,7 +189,8 @@ static void get_server_info_callback(pa_context *c, const pa_server_info *i, voi             cm,             i->default_sink_name,             i->default_source_name, -           i->cookie); +           i->cookie >> 16, +           i->cookie & 0xFFFFU);      complete_action();  } diff --git a/src/utils/pasuspender.c b/src/utils/pasuspender.c index c327ee41..534b77b4 100644 --- a/src/utils/pasuspender.c +++ b/src/utils/pasuspender.c @@ -45,8 +45,6 @@  #include <pulse/pulseaudio.h>  #include <pulsecore/macro.h> -#define BUFSIZE 1024 -  static pa_context *context = NULL;  static pa_mainloop_api *mainloop_api = NULL;  static char **child_argv = NULL;  | 
