summaryrefslogtreecommitdiffstats
path: root/HAL-afb/HAL_MOST_UNICENS/wrap_volume.c
diff options
context:
space:
mode:
Diffstat (limited to 'HAL-afb/HAL_MOST_UNICENS/wrap_volume.c')
-rw-r--r--HAL-afb/HAL_MOST_UNICENS/wrap_volume.c14
1 files changed, 14 insertions, 0 deletions
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;
+}
+