diff -Nru libshairport-1.2.1~git20121216.16395d8/debian/changelog libshairport-1.2.1~git20121216.16395d8/debian/changelog --- libshairport-1.2.1~git20121216.16395d8/debian/changelog 2012-12-16 08:11:55.000000000 +0000 +++ libshairport-1.2.1~git20121216.16395d8/debian/changelog 2013-04-01 15:32:39.000000000 +0000 @@ -1,4 +1,16 @@ -libshairport (1:1.2.1~git20121216.16395d8-0~ppa1~quantal) quantal; urgency=low +libshairport (1:1.2.1~git20121216.16395d8-1~ppa1~quantal) quantal; urgency=low + + * add volume control patch + + -- wsnipex Mon, 01 Apr 2013 17:30:42 +0200 + +libshairport (1:1.2.1~git20121216.16395d8-0~ppa1~raring) raring; urgency=low + + * ported to raring + + -- wsnipex Wed, 23 Jan 2013 13:39:54 +0100 + +libshairport (1:1.2.1~git20121216.16395d8-0~ppa1~natty) natty; urgency=low * new upstream version diff -Nru libshairport-1.2.1~git20121216.16395d8/debian/patches/series libshairport-1.2.1~git20121216.16395d8/debian/patches/series --- libshairport-1.2.1~git20121216.16395d8/debian/patches/series 2012-12-16 08:02:25.000000000 +0000 +++ libshairport-1.2.1~git20121216.16395d8/debian/patches/series 2013-04-01 15:30:24.000000000 +0000 @@ -0,0 +1 @@ +volumecontrol.patch diff -Nru libshairport-1.2.1~git20121216.16395d8/debian/patches/volumecontrol.patch libshairport-1.2.1~git20121216.16395d8/debian/patches/volumecontrol.patch --- libshairport-1.2.1~git20121216.16395d8/debian/patches/volumecontrol.patch 1970-01-01 00:00:00.000000000 +0000 +++ libshairport-1.2.1~git20121216.16395d8/debian/patches/volumecontrol.patch 2013-04-01 15:29:12.000000000 +0000 @@ -0,0 +1,47 @@ +From 27df84cd5d27c14a5cee1f33c5bf01b284859447 Mon Sep 17 00:00:00 2001 +From: Memphiz +Date: Thu, 14 Mar 2013 21:12:59 +0100 +Subject: [PATCH] [shairport] - add version number for AudioOutput struct and + add volume control callback + +--- + src/hairtunes.c | 2 ++ + src/shairport.h | 2 ++ + 2 files changed, 4 insertions(+) + +diff --git a/src/hairtunes.c b/src/hairtunes.c +index 2ccef21..4284e2e 100644 +--- a/src/hairtunes.c ++++ b/src/hairtunes.c +@@ -264,6 +264,8 @@ void __shairport_hairtunes_setvolume(float f) + assert(f<=0); + if (debug) + __shairport_xprintf("VOL: %lf\n", f); ++ if (g_ao.ao_set_volume) ++ g_ao.ao_set_volume(f); + volume = pow(10.0,0.05*f); + fix_volume = 65536.0 * volume; + } +diff --git a/src/shairport.h b/src/shairport.h +index f884472..2365fba 100644 +--- a/src/shairport.h ++++ b/src/shairport.h +@@ -62,6 +62,7 @@ struct printfPtr + int (*extprintf)(const char* msg, size_t msgSize); + }; + ++#define SHAIRPORT_AUDIOOUTPUT_VERSION 2 + struct AudioOutput + { + void (*ao_initialize)(void); +@@ -75,6 +76,7 @@ struct AudioOutput + char* (*ao_get_option)(ao_option *, const char* ); + void (*ao_set_metadata)(const char *buffer, unsigned int size); + void (*ao_set_metadata_coverart)(const char *buffer, unsigned int size); ++ void (*ao_set_volume)(float volume); + }; + + int shairport_main(int argc, char **argv); +-- +1.8.1.5 +