summaryrefslogtreecommitdiff
blob: 934aa5c836bf579280790a7a3d127df428a16c72 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
Index: Slim/Player/SqueezeSlave.pm
===================================================================
--- Slim/Player/SqueezeSlave.pm	(revision 26719)
+++ Slim/Player/SqueezeSlave.pm	(revision 26720)
@@ -102,6 +102,7 @@
  );
 
 sub dBToFixed {
+	my $client = shift;
 	my $db = shift;
 
 	# Map a floating point dB value to a 16.16 fixed point value to
@@ -147,7 +148,7 @@
 			# With new style volume, let's try -49.5dB as the lowest
 			# value.
 			my $db = ($volume - 100)/2;	
-			$newGain = dBToFixed($db);
+			$newGain = $client->dBToFixed($db);
 		}
 
 		my $data = pack('NNCCNN', $oldGain, $oldGain, $prefs->client($client)->get('digitalVolumeControl'), $preamp, $newGain, $newGain);
@@ -203,6 +204,9 @@
 sub hasDigitalOut {
 	return 0;
 }
+sub hasPowerControl {
+	return 0;
+}
 
 sub pcm_sample_rates {
 	my $client = shift;