beautypg.com

ClearOne Writing StreamNet User Manual

Page 57

background image

Audio Driver Example

D-5

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.

szFreq = szFreq..message

else

szFreq = szFreq.."."..message

end

setCaption(szFreq)

end

nExpectedRX = IDLE

nResponseTimeout = 0

nTimeouts = 0

elseif( nExpectedRX == POWER_STATE ) then

if( message:find("[0]") ) then

SendPower( true )

end

nExpectedRX = IDLE

nResponseTimeout = 0

nTimeouts = 0

else

debug("verbose", "Unexpected Response "..message)

end

end

UpdateSongReport()

end

-- function UpdateSongReport()

-- Cristian Prundeanu

-- 10/23/2006

--

function UpdateSongReport()

local songReport = songReportInstance()

local strCaption = BANDNAME[nBand] or ""

songReport:setField("band", strCaption)

strCaption = strCaption..szFreq

-- currently, the only used field in the zTuner GUI is "caption"

songReport:setField("caption", strCaption)

songReport:setField("frequency", szFreq)

songReport:setField("pwrOn", szPwrOn)

end