From dcbeb5994710d104cf0fe0cbf156381b29b264f0 Mon Sep 17 00:00:00 2001 From: Janos Kovacs Date: Mon, 10 Dec 2012 03:17:48 +0200 Subject: [PATCH] configuration: add application classes and volume control to basic script --- murphy/murphy-ivi.lua | 71 +++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 71 insertions(+) diff --git a/murphy/murphy-ivi.lua b/murphy/murphy-ivi.lua index b0bba11..0165369 100644 --- a/murphy/murphy-ivi.lua +++ b/murphy/murphy-ivi.lua @@ -20,3 +20,74 @@ routing_group { compare = builtin.method.compare_phone } +application_class { + node_type = node.phone, + priority = 4, + route = { + input = routing_group.phone_input, + output = routing_group.phone_output + } +} + +application_class { + node_type = node.radio, + priority = 1, + route = { + output = routing_group.default_output + } +} + +application_class { + node_type = node.player, + priority = 1, + route = { + output = routing_group.default_output + } +} + +application_class { + node_type = node.navigator, + priority = 2, + route = { + output = routing_group.default_output + } +} + +application_class { + node_type = node.game, + priority = 3, + route = { + output = routing_group.default_output + } +} + +application_class { + node_type = node.browser, + priority = 1, + route = { + output = routing_group.default_output + } +} + +application_class { + node_type = node.event, + priority = 5, + route = { + output = routing_group.default_output + } +} + +volume_limit { + name = "speed_adjust", + type = volume_limit.generic, + limit = -10; + calculate = builtin.method.volume_correct +} + +volume_limit { + name = "suppress", + type = volume_limit.class, + limit = -20; + node_type = { node.phone, node.navigator }, + calculate = builtin.method.volume_supress +} -- 2.7.4