aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/js/agl_stubs_audiomixer.js13
-rw-r--r--src/js/app.js3
-rw-r--r--src/js/sliders.js2
3 files changed, 15 insertions, 3 deletions
diff --git a/src/js/agl_stubs_audiomixer.js b/src/js/agl_stubs_audiomixer.js
new file mode 100644
index 0000000..c5f8d2e
--- /dev/null
+++ b/src/js/agl_stubs_audiomixer.js
@@ -0,0 +1,13 @@
+export function on_volume_changed() {
+}
+
+export function list_controls() {
+ return new Promise((result, reject) => {
+ result([
+ { control: "MAIN", volume: 0.5 }
+ ]);
+ });
+}
+
+export function set_volume() {
+}
diff --git a/src/js/app.js b/src/js/app.js
index a26f137..bfebf1c 100644
--- a/src/js/app.js
+++ b/src/js/app.js
@@ -1,5 +1,5 @@
import Mustache from 'mustache';
-import { audiomixer, api } from 'agl-js-api';
+import * as audiomixer from './agl_stubs_audiomixer';
import { setValue } from './sliders';
var template;
@@ -13,7 +13,6 @@ function render_sliders(sliders) {
}
export function init() {
- api.init();
template = document.getElementById('slider-template').innerHTML;
Mustache.parse(template);
diff --git a/src/js/sliders.js b/src/js/sliders.js
index 7208a85..5b9191c 100644
--- a/src/js/sliders.js
+++ b/src/js/sliders.js
@@ -1,4 +1,4 @@
-import { audiomixer } from 'agl-js-api';
+import * as audiomixer from './agl_stubs_audiomixer';
function getRootNode(node) {
while(!node.hasAttribute('slider-id') && node.parentNode) {