diff options
author | Loïc Collignon <loic.collignon@iot.bzh> | 2018-07-05 16:13:31 +0200 |
---|---|---|
committer | Loïc Collignon <loic.collignon@iot.bzh> | 2018-07-10 19:21:41 +0200 |
commit | bc11d604c87c2a04406e0750106e17a5c32f2e27 (patch) | |
tree | 00fbac4ce1fb719d7005fafcde7143872078ed7d /app/mixer.cpp | |
parent | d009b2e3665ab49ce8885a7d1f59d67bdaf4cd7e (diff) |
Make volume sliders works correctly
Volume sliders are now binded to the High Level 4a API.
Change-Id: I46c4d80a19cf2a9047a502d9faa8bec6f7bd173e
Signed-off-by: Loïc Collignon <loic.collignon@iot.bzh>
Diffstat (limited to 'app/mixer.cpp')
-rw-r--r-- | app/mixer.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/app/mixer.cpp b/app/mixer.cpp index 6a1245c..f231b6d 100644 --- a/app/mixer.cpp +++ b/app/mixer.cpp @@ -82,7 +82,8 @@ void Mixer::getVolume(const QString& name) if (r && v.isObject()) { // TODO: Success, update the slider - int newVolume = v.toObject()["response"].toObject()["volnew"].toInt(); + qDebug() << "Volume changed: " << v; + int newVolume = v.toObject()["response"].toObject()["response"].toObject()["volnew"].toInt(); auto currentVolume = volumes_.find(name); if (currentVolume != volumes_.end() && *currentVolume == newVolume) return; |