]> git.ipfire.org Git - thirdparty/shairport-sync.git/commitdiff
Fix a compilation error in audio_pulse.c and fix a related script error in configure.ac
authorMike Brady <mikebrady@eircom.net>
Tue, 31 May 2016 19:39:58 +0000 (20:39 +0100)
committerMike Brady <mikebrady@eircom.net>
Tue, 31 May 2016 19:39:58 +0000 (20:39 +0100)
audio_pulse.c
configure.ac

index e6e3bc5f0572898fce71f9094a4d4deb8dc3fe4b..6fa94e971c30d7a1d0abbe3c9fe7639c140599fa 100644 (file)
@@ -42,8 +42,8 @@ static pa_simple *pa_dev = NULL;
 static struct {
   char *server;
   char *sink;
-  char *apname;
-} pulse_options = {.server = NULL, .sink = NULL, .apname = NULL};
+  char *service_name;
+} pulse_options = {.server = NULL, .sink = NULL, .service_name = NULL};
 
 static int pa_error;
 
@@ -58,7 +58,7 @@ static void help(void) {
 
 static int init(int argc, char **argv) {
 
-  pulse_options.apname = config.apname;
+  pulse_options.service_name = config.service_name;
 
   config.audio_backend_buffer_desired_length = 44100; // one second.
   config.audio_backend_latency_offset = 0;
@@ -78,7 +78,7 @@ static int init(int argc, char **argv) {
       pulse_options.sink = optarg;
       break;
     case 'n':
-      pulse_options.apname = optarg;
+      pulse_options.service_name = optarg;
       break;
     default:
       help();
@@ -97,7 +97,7 @@ static int init(int argc, char **argv) {
 static void pulse_connect(void) {
   static const pa_sample_spec ss = {.format = PA_SAMPLE_S16LE, .rate = 44100, .channels = 2};
 
-  pa_dev = pa_simple_new(pulse_options.server, pulse_options.apname, PA_STREAM_PLAYBACK,
+  pa_dev = pa_simple_new(pulse_options.server, pulse_options.service_name, PA_STREAM_PLAYBACK,
                          pulse_options.sink, "Shairport Stream", &ss, NULL, NULL, &pa_error);
 
   if (!pa_dev)
index f91c9a1138538acdd5264d44e6fbf0c01f47da9b..c08c4574cae8260fbdbf6b9d78ec4022f24d87b8 100644 (file)
@@ -2,7 +2,7 @@
 # Process this file with autoconf to produce a configure script.
 
 AC_PREREQ([2.50])
-AC_INIT([shairport-sync], [2.8.4], [mikebrady@eircom.net])
+AC_INIT([shairport-sync], [2.8.4.1], [mikebrady@eircom.net])
 AM_INIT_AUTOMAKE
 AC_CONFIG_SRCDIR([shairport.c])
 AC_CONFIG_HEADERS([config.h])
@@ -202,8 +202,8 @@ AC_ARG_WITH(pulseaudio, [  --with-pulseaudio = choose PulseAudio API support. N.
   AC_MSG_RESULT(>>Including a PulseAudio back end. N.B. no synchronisation -- so underflow or overflow is inevitable!)
   HAS_PULSE=1
   AC_DEFINE([CONFIG_PULSE], 1, [Needed by the compiler.])
-  AC_CHECK_LIB([pulse-simple], [pa_simple_new], , AC_MSG_ERROR(PulseAudio support requires the pulse-simple library, possibly in the package libpulse-dev!))
-  AC_CHECK_LIB([pulse], [pa_stream_peek], , AC_MSG_ERROR(PulseAudio support requires the libpulse-dev library!))], )
+  AC_CHECK_LIB([pulse-simple], [pa_simple_new], , AC_MSG_ERROR(PulseAudio support requires the pulse-simple library -- possibly in the libpulse-dev package!))
+  AC_CHECK_LIB([pulse], [pa_stream_peek], , AC_MSG_ERROR(PulseAudio support requires the libpulse-dev library.))], )
 AM_CONDITIONAL([USE_PULSE], [test "x$HAS_PULSE" = "x1"])
 
 # Look for dns_sd flag