beautypg.com

ClearOne Writing StreamNet User Manual

Page 65

background image

Audio Driver Example

D-13

All specifications subject to change without notification. All rights reserved. Copyright © 2007 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.

-- make sure we have enough trailing zeros

if( AsciiMessage:len() < 12 ) then

AsciiMessage = AsciiMessage.."0"

end

else

if( bIsV2 ) then

AsciiMessage = AsciiMessage..szInput:sub( 1, 2

).."."..szInput:sub( 3, 5 )

else

AsciiMessage = AsciiMessage..szInput:sub( 1, 2 ).."

"..szInput:sub( 3, 5 )

end

-- make sure we have enough trailing zeros

if( AsciiMessage:len() < 11 ) then

AsciiMessage = AsciiMessage.."0"

end

end

end

-- clear out szInput

szInput = ""

AsciiMessage = AsciiMessage.."%0D"

WriteMessage(AsciiMessage)

-- if we are a V1 we need to update the frequency

if( false == bIsV2 ) then

nRefreshFreqTimeout = 0

RefreshFrequency()

end

end

-- function handle_menu_list(command)

-- Cristian Prundeanu

-- 10-23-2006

-- handler for #MENU_LIST indexStart, indexEnd, path, searchParams

-- path format: "PRESET"|"MEDIA"|"MEDIA2" [ ">" [ ">"

[...] ] ]; ex: "MEDIA>ALLDISCS>Disc_10>Title_5>Chapter_2"

function handle_menu_list(command)

debug("verbose", "handle_menu_list: command=",command)

debug("verbose", '#MENU_LIST '..

(command.params[1] and ('"'..command.params[1]..'"') or 'nil')..', '..

(command.params[2] and ('"'..command.params[2]..'"') or 'nil')..', '..

(command.params[3] and ('"'..command.params[3]..'"') or 'nil')..', '..