From c3d250fbc63c05d7f0ad5c4d95d725a16f3cece4 Mon Sep 17 00:00:00 2001 From: Tobias Jahnke Date: Mon, 21 Aug 2017 17:01:54 +0200 Subject: forwarding node availability to volume lib --- HAL-afb/HAL_MOST_UNICENS/wrap_volume.c | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'HAL-afb/HAL_MOST_UNICENS/wrap_volume.c') diff --git a/HAL-afb/HAL_MOST_UNICENS/wrap_volume.c b/HAL-afb/HAL_MOST_UNICENS/wrap_volume.c index 8087a04..5bc1e84 100644 --- a/HAL-afb/HAL_MOST_UNICENS/wrap_volume.c +++ b/HAL-afb/HAL_MOST_UNICENS/wrap_volume.c @@ -116,3 +116,17 @@ extern int wrap_volume_pcm(int *volume_ptr, int volume_sz) { return ret; } + +extern int wrap_volume_node_avail(int node, int available) { + + int ret; + ret = lib_most_volume_node_available((uint16_t)node, (uint8_t)available); + + if (ret != 0) { + AFB_ERROR("wrap_volume_node_avail: volume library not ready."); + ret = ret * (-1); /* make return value negative */ + } + + return ret; +} + -- cgit 1.2.3-korg