aboutsummaryrefslogtreecommitdiffstats
path: root/app/mixer.cpp
AgeCommit message (Collapse)AuthorFilesLines
2019-08-06Fix implicit conversions warningLi Xiaoming1-2/+2
Bug-AGL: SPEC-2422 Change-Id: I75df069462720be45886554baeded4009ca2b39e Signed-off-by: Li Xiaoming <lixm.fnst@cn.fujitsu.com>
2019-07-01Convert volume to the [0.0,1.0] range before sending it to audiomixerhalibut_8.0.0halibut_7.99.3halibut/8.0.0halibut/7.99.38.0.07.99.3George Kiagiadakis1-1/+1
Fixes setting the volume. Bug-AGL: SPEC-2473 Signed-off-by: George Kiagiadakis <george.kiagiadakis@collabora.com> Change-Id: I9a778b88d58faedb4480a70af749500ae083bc29
2019-06-12Fix compilation error - m_roles contains QObject* and needs a casthalibut_7.99.2halibut/7.99.27.99.2George Kiagiadakis1-1/+2
Bug-AGL: SPEC-2473 Change-Id: Ia07be3c3b9231b34a8607b430f6f9dfa8ad8b530 Signed-off-by: George Kiagiadakis <george.kiagiadakis@collabora.com>
2019-06-10Modify mixer to use the new pipewire audiomixer bindingGeorge Kiagiadakis1-58/+59
Bug-AGL: SPEC-2473 Signed-off-by: George Kiagiadakis <george.kiagiadakis@collabora.com> Change-Id: I45595d6bde1b710fb81216676c3f8a390f4e5737
2018-12-19Reworked the way qml create slidersLoïc Collignon1-57/+67
Use the qml MVC to populate a ListView with components based on a template VolumeSlider. Should now handle potential disconnections, volume changes by third-party and also fix the issue where sliders are set to 0 at startup. Change-Id: I2961d5a1584a121c473ece253faa90a747c64445 Signed-off-by: Loïc Collignon <loic.collignon@iot.bzh>
2018-12-13Handle the volume_changed eventLoïc Collignon1-51/+89
4A's High Level API now raises event when volume of a role is changed. This handles it by subscribing to the event and update the corresponding slider. Bug: SPEC-2054 Change-Id: I137eaa461f0baa9206ee714c91e3ac998b9b2bf2 Signed-off-by: Loïc Collignon <loic.collignon@iot.bzh>
2018-11-23Fix json format changed since v3guppy_6.99.2guppy_6.99.1guppy/6.99.2guppy/6.99.16.99.26.99.1Loïc Collignon1-1/+1
Using APIv3 the json format for a response of an API call has changed a bit, removing one extra useless level. BUG: SPECT-1973 Change-Id: If5cfcda5740cf48637257a510f030dc84e853057 Signed-off-by: Loïc Collignon <loic.collignon@iot.bzh>
2018-07-10Make volume sliders works correctlyLoïc Collignon1-1/+2
Volume sliders are now binded to the High Level 4a API. Change-Id: I46c4d80a19cf2a9047a502d9faa8bec6f7bd173e Signed-off-by: Loïc Collignon <loic.collignon@iot.bzh>
2018-07-10WIP better handling for slider creationLoïc Collignon1-1/+8
The creation of sliders is now using a template instead of a string computation. Also fixed some indentation and trailing spaces issues. Change-Id: Ieb1d9f953d61fa1bac46bf1ab6904e67d09a3fa9 Signed-off-by: Loïc Collignon <loic.collignon@iot.bzh>
2018-06-27Merge 'eel' into 'master'Loïc Collignon1-0/+91
Replace content from 'master' by content from 'eel' as it's the new version based on 4a on which new development will be done. Change-Id: I2966af7dcee59701ff3a344487c008d7e65e68ed Signed-off-by: Loïc Collignon <loic.collignon@iot.bzh>