ClearOne Writing StreamNet User Manual
Page 66
Writing StreamNet Device Drivers
D-14
All specifications subject to change without notification. All rights reserved. Copyright © 2005 NetStreams
Main +1 512.977-9393 / fax +1 512.977.9398 / Toll Free Technical Support +1 866-353-3496
3600 W. Parmer Lane, Suite 100; Austin, TX 78727 /
www.netstreams.com.
(command.params[4] and ('"'..command.params[4]..'"') or 'nil')
)
if (#command.params > 4) then
debug("warning", "Extended #MENU_LIST params received: ",
command.params)
end
local nStart = tonumber(command.params[1])
local nEnd = tonumber(command.params[2])
if (command.vPath[1]:upper() == "PRESETS") then
-- default preset handling is sufficient
defaultHandleMenuListPresets(command, nStart, nEnd)
elseif (command.vPath[1]:upper() == "MEDIA" or
command.vPath[1]:upper() == "MEDIA2") then
debug("error", "Media menus not supported in zTuner")
command:sendFinalMenuResp()
else
debug("error", "Unknown root node in #MENU_LIST: ",command.params[3] )
end
end
-- function handle_menu_sel(command)
-- Cristian Prundeanu
-- 10-24-2006
-- handler for #MENU_SEL path
-- path format: see handle_menu_list
handle_menu_sel = function(command)
debug("verbose", '#MENU_SEL '..
(command.params[1] and ('"'..command.params[1]..'"') or 'nil')
)
if (#command.params > 1) then
debug("warning", "Extended #MENU_SEL params received: ", command.params)
end
if(command.vPath[1]:upper() == "PRESETS") then
-- handle "#MENU_SEL {{presets>...}}" commands, where the
-- presets are stored in the table passed by the dealer setup
command:handlePresetMenuSel(command.vPath[2])
elseif (command.vPath[1]:upper() == "MEDIA" or
command.vPath[1]:upper() == "MEDIA2") then
debug("error", "Media menus not supported in zTuner")
end
end
-- function handle_menu_set(command)
-- Cristian Prundeanu
-- 10-24-2006
-- handler for #MENU_SET index
handle_menu_set = function(command)
debug("verbose", '#MENU_SET '..