aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLoïc Collignon <loic.collignon@iot.bzh>2018-02-17 10:35:42 +0100
committerLoïc Collignon <loic.collignon@iot.bzh>2018-02-17 10:35:42 +0100
commit43dc156f29b89efd4055b8b412e888c0c3129e7b (patch)
tree636fa6fdd8955ae38c59bd33daf9407e3aed80ca
parente9d7262891448a3321f29c72f4b7e7bac19b0e64 (diff)
removed unused dependency to pulseaudio.
Change-Id: I80b42ce196226f5d8bc0860f1a7935aa182de6fe Signed-off-by: Loïc Collignon <loic.collignon@iot.bzh>
-rw-r--r--homescreen/src/mastervolume.cpp2
-rw-r--r--homescreen/src/mastervolume.h7
2 files changed, 4 insertions, 5 deletions
diff --git a/homescreen/src/mastervolume.cpp b/homescreen/src/mastervolume.cpp
index 5e1e450..5ef78c5 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(uint32_t volume)
{
int volume_delta = volume - m_volume;
m_volume = volume;
diff --git a/homescreen/src/mastervolume.h b/homescreen/src/mastervolume.h
index 645968a..3536e58 100644
--- a/homescreen/src/mastervolume.h
+++ b/homescreen/src/mastervolume.h
@@ -17,9 +17,8 @@
#include <QtCore/QObject>
#include <QQmlEngine>
-#include <pulse/pulseaudio.h>
-
-class MasterVolume : public QObject
+class MasterVolume
+ : public QObject
{
Q_OBJECT
Q_PROPERTY (uint32_t volume READ getVolume WRITE setVolume NOTIFY volumeChanged)
@@ -33,7 +32,7 @@ class MasterVolume : public QObject
~MasterVolume() {}
uint32_t getVolume() const { return m_volume; }
- void setVolume(pa_volume_t volume);
+ void setVolume(uint32_t volume);
public slots:
void changeExternalVolume(int volume);