summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorStephane Desneux <stephane.desneux@iot.bzh>2018-07-20 18:10:51 +0200
committerStephane Desneux <stephane.desneux@iot.bzh>2018-07-20 18:10:51 +0200
commita8b94699ae7ec155729fcccda2be4f22328ca790 (patch)
tree2299dccb89579c5244fc4832e96ed5797f1d0de9
parentb4db06287bc997ded71deab50ff0ff5889b09e1f (diff)
Remove useless ref to pulseaudioflounder_5.99.2flounder/5.99.25.99.2
There should be no direct dependency to pulseaudio. Bug-AGL: SPEC-1234 Change-Id: Ib7b784452b767c76beb1bd320c4bce6f7039a929 Signed-off-by: Ronan Le Martret <ronan.lemartret@iot.bzh> Signed-off-by: Stephane Desneux <stephane.desneux@iot.bzh>
-rw-r--r--homescreen/src/mastervolume.cpp2
-rw-r--r--homescreen/src/mastervolume.h4
2 files changed, 2 insertions, 4 deletions
diff --git a/homescreen/src/mastervolume.cpp b/homescreen/src/mastervolume.cpp
index 5e1e450..9fb92a9 100644
--- a/homescreen/src/mastervolume.cpp
+++ b/homescreen/src/mastervolume.cpp
@@ -16,7 +16,7 @@
#include "mastervolume.h"
-void MasterVolume::setVolume(pa_volume_t volume)
+void MasterVolume::setVolume(int volume)
{
int volume_delta = volume - m_volume;
m_volume = volume;
diff --git a/homescreen/src/mastervolume.h b/homescreen/src/mastervolume.h
index 645968a..bca6356 100644
--- a/homescreen/src/mastervolume.h
+++ b/homescreen/src/mastervolume.h
@@ -17,8 +17,6 @@
#include <QtCore/QObject>
#include <QQmlEngine>
-#include <pulse/pulseaudio.h>
-
class MasterVolume : public QObject
{
Q_OBJECT
@@ -33,7 +31,7 @@ class MasterVolume : public QObject
~MasterVolume() {}
uint32_t getVolume() const { return m_volume; }
- void setVolume(pa_volume_t volume);
+ void setVolume(int volume);
public slots:
void changeExternalVolume(int volume);