beautypg.com

ClearOne Writing StreamNet User Manual

Page 63

background image

Audio Driver Example

D-11

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.

AsciiMessage = "W 1 8 1%0D";

else

AsciiMessage = "W 1 8 10%0D";

end

WriteMessage(AsciiMessage)

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

if( false == bIsV2 ) then

nRefreshFreqTimeout = 0

RefreshFrequency()

end

end

-- function handle_key(command)

-- Diego Alfarache

-- 09-20-2006

-- Receive and process #KEY commands

function handle_key(command)

if( command == nil or command.params[1] == nil) then

return

end

local keyvalue = command.params[1]:upper();

if( szInput:len() > 6 ) then

szInput = szInput:sub(2,-1)

end

szInput = szInput..keyvalue

end

-- function handle_key(command)

-- Diego Alfarache

-- 09-22-2006

-- Receive and process #CLEAR commands

function handle_clear( command )

szInput = ""

end