summaryrefslogtreecommitdiffstats
path: root/src/js/volume.js
diff options
context:
space:
mode:
Diffstat (limited to 'src/js/volume.js')
-rw-r--r--src/js/volume.js11
1 files changed, 6 insertions, 5 deletions
diff --git a/src/js/volume.js b/src/js/volume.js
index 0bbb481..749496b 100644
--- a/src/js/volume.js
+++ b/src/js/volume.js
@@ -35,21 +35,22 @@ export function setValue(node, value) {
// all the below functions need to be update to use
// the correct paths/elements
export function increase(node) {
- KUKSA.set(PATHS.volume, getValue(node)+5);
+ KUKSA.setUInt32(PATHS.volume, getValue(node)+5);
}
export function decrease(node) {
- KUKSA.set(PATHS.volume, getValue(node)-5);
+ KUKSA.setUInt32(PATHS.volume, getValue(node)-5);
}
export function change(node) {
- KUKSA.set(PATHS.volume, node.value);
+ KUKSA.setUInt32(PATHS.volume, node.value);
}
-export function update(path, value) {
+export function update(path, dp) {
+ var value = dp.getUint32();
setValue(document.getElementById('progress-MAIN'), value);
}
export function init() {
- KUKSA.set(PATHS.volume, 20);
+ KUKSA.setUInt32(PATHS.volume, 20);
}