From 1594606d160d61153cf2396befdefdcf24a0b4eb Mon Sep 17 00:00:00 2001 From: fulup Date: Wed, 6 Jun 2018 11:47:08 +0200 Subject: Move smixer API create+attach into controller onload section --- conf.d/project/etc/smixer-test-config.json | 20 +-- conf.d/project/htdocs/index.html | 22 +-- conf.d/project/lua.d/smixer-test-simple.lua | 12 +- mixer-binding/mixer-binding.c | 30 +--- nbproject/configurations.xml | 253 +++------------------------- plugins/alsa/alsa-api-mixer.c | 80 +-------- 6 files changed, 65 insertions(+), 352 deletions(-) diff --git a/conf.d/project/etc/smixer-test-config.json b/conf.d/project/etc/smixer-test-config.json index 3ed9f29..71eded8 100644 --- a/conf.d/project/etc/smixer-test-config.json +++ b/conf.d/project/etc/smixer-test-config.json @@ -12,24 +12,20 @@ "info": "Map alsa-loop subdevices to 4A HAL streams", "spath": "./package/lib/plugins:./package/var:./lib/plugins:./var", "libs": ["alsa-softmixer.ctlso", "smixer-test-simple.lua"], - "lua": { - "prefix": "smix", - "functions": ["_mixer_new_"] - } } ], "onload": [ { - "uid": "init-soft-mixer", - "info": "Initialise Audio Router", - "action": "lua://softmixer#_mixer_simple_test_" - } - ], - "controls": [ + "uid": "create-soft-mixer", + "info": "Create Audio Router", + "action": "plugin://softmixer#CreateMixer", + "args": {"uid":"Simple_Test_Mixer"} + }, { - "uid": "create", - "action": "plugin://softmixer#mixer_new" + "uid": "attach-soft-mixer", + "info": "Attach Stream to Audio Router", + "action": "lua://softmixer#_mixer_simple_test_" } ] } diff --git a/conf.d/project/htdocs/index.html b/conf.d/project/htdocs/index.html index df7ec80..c667dde 100644 --- a/conf.d/project/htdocs/index.html +++ b/conf.d/project/htdocs/index.html @@ -18,21 +18,21 @@

V3 API CALL

    -
  1. -
  2. -
  3. +
  4. +
  5. +

  6. -
  7. -
  8. +
  9. +

  10. -
  11. -
  12. +
  13. +

  14. -
  15. -
  16. +
  17. +

  18. -
  19. -
  20. +
  21. +