Main Page | Namespace List | Class Hierarchy | Alphabetical List | Compound List | File List | Compound Members | File Members

clBeamAudio Class Reference

Server for beamformed audio. More...

#include <BeamAudio.hh>

Collaboration diagram for clBeamAudio:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 clBeamAudio (int, int)
 ~clBeamAudio ()
int Main ()
void Stop ()

Private Member Functions

bool GetCfg ()
bool GetRq ()
bool ConnectStream ()
bool InitBeam ()
bool SendFirst ()
void SetDirection ()
void ProcessLoop ()
bool SendResult (GDT *, long)

Private Attributes

bool bRun
int iArrayType
int iShadingType
long lStartCh
long lWindowSize
long lSensorCount
GDT fSensorSpacing
char cpStreamSocket [_POSIX_PATH_MAX+1]
GDT fAttenuation
stBeamAudioReq sRequest
stBeamAudioRes sResHdr
stRawDataFirst sRawHdr
clCfgFile CfgFile
clBeamAudioMsg Msg
clDSPOp DSP
clSockClie SClient
clSockOp SOpRaw
clSockOp SOpRequest
clSockOp SOpResult
clFreqBeamDipole FBeamDipole
clFreqBeamLine FBeamLine

Detailed Description

Server for beamformed audio.

Definition at line 55 of file BeamAudio.hh.


Constructor & Destructor Documentation

clBeamAudio::clBeamAudio int  ,
int 
 

Definition at line 302 of file BeamAudio.cc.

References bRun, clSockOp::DisableNagle(), fAttenuation, GDT, clSockOp::SetHandle(), SOpRequest, and SOpResult.

clBeamAudio::~clBeamAudio  ) 
 

Definition at line 312 of file BeamAudio.cc.


Member Function Documentation

bool clBeamAudio::GetCfg  )  [private]
 

Definition at line 97 of file BeamAudio.cc.

References BA_CFGFILE, BA_DEF_FRAGMENT_SIZE, CfgFile, cpStreamSocket, fSensorSpacing, clCfgFile::GetFlt(), clCfgFile::GetInt(), clCfgFile::GetStr(), iArrayType, iShadingType, lSensorCount, lStartCh, lWindowSize, SD_CFGFILE, and clCfgFile::SetFileName().

Referenced by Main().

bool clBeamAudio::GetRq  )  [private]
 

Definition at line 113 of file BeamAudio.cc.

References BA_1STREQ_TIMEOUT, clBeamAudioMsg::GetRequest(), GLOBAL_HEADER_LEN, Msg, clSockOp::ReadN(), clSockOp::ReadSelect(), SOpRequest, and sRequest.

Referenced by Main(), and ProcessLoop().

bool clBeamAudio::ConnectStream  )  [private]
 

Definition at line 125 of file BeamAudio.cc.

References BA_RAW1ST_TIMEOUT, clSockClie::Connect(), cpStreamSocket, _stRawDataReq::iChannel, clSockOp::ReadN(), clSockOp::ReadSelect(), SClient, clSockOp::SetHandle(), SOpRaw, sRawHdr, and clSockOp::WriteN().

Referenced by Main().

bool clBeamAudio::InitBeam  )  [private]
 

Definition at line 143 of file BeamAudio.cc.

References BA_ARRAY_TYPE_CYLINDER, BA_ARRAY_TYPE_DIPOLE, BA_ARRAY_TYPE_LINE, BA_ARRAY_TYPE_PLANE, BA_ARRAY_TYPE_SPHERE, BA_ARRAY_TYPE_TRIANGLE, bDebug, _stBeamAudioReq::bHighFreq, _stRawDataFirst::dSampleRate, FBeamDipole, FBeamLine, _stBeamAudioReq::fDirection, fSensorSpacing, _stBeamAudioReq::fSoundSpeed, GDT, iArrayType, clFreqBeamLine::Initialize(), clFreqBeamDipole::Initialize(), lSensorCount, lWindowSize, clFreqBeamLine::SetDebug(), clFreqBeamDipole::SetDebug(), clFreqBeamLine::SetDirection(), clFreqBeamDipole::SetDirection(), clFreqBeamLine::SetSoundSpeed(), clFreqBeamDipole::SetSoundSpeed(), sRawHdr, and sRequest.

Referenced by Main().

bool clBeamAudio::SendFirst  )  [private]
 

Definition at line 190 of file BeamAudio.cc.

References _stRawDataFirst::dSampleRate, GLOBAL_HEADER_LEN, _stBeamAudioFirst::iSampleRate, _stBeamAudioFirst::lBufLength, lWindowSize, Msg, clBeamAudioMsg::SetFirst(), SOpResult, sRawHdr, and clSockOp::WriteN().

Referenced by Main().

void clBeamAudio::SetDirection  )  [private]
 

Definition at line 204 of file BeamAudio.cc.

References BA_ARRAY_TYPE_CYLINDER, BA_ARRAY_TYPE_DIPOLE, BA_ARRAY_TYPE_LINE, BA_ARRAY_TYPE_PLANE, BA_ARRAY_TYPE_SPHERE, BA_ARRAY_TYPE_TRIANGLE, _stBeamAudioReq::bHighFreq, FBeamDipole, FBeamLine, _stBeamAudioReq::fDirection, iArrayType, clFreqBeamLine::SetDirection(), clFreqBeamDipole::SetDirection(), and sRequest.

Referenced by ProcessLoop().

void clBeamAudio::ProcessLoop  )  [private]
 

Definition at line 226 of file BeamAudio.cc.

References BA_ARRAY_TYPE_CYLINDER, BA_ARRAY_TYPE_DIPOLE, BA_ARRAY_TYPE_LINE, BA_ARRAY_TYPE_PLANE, BA_ARRAY_TYPE_SPHERE, BA_ARRAY_TYPE_TRIANGLE, bRun, DSP, FBeamDipole, FBeamLine, GDT, clFreqBeamLine::Get(), clFreqBeamDipole::Get(), GetRq(), iArrayType, _stRawDataFirst::iChannels, lStartCh, lWindowSize, clFreqBeamLine::Put(), clFreqBeamDipole::Put(), clSockOp::ReadN(), clSockOp::ReadSelect(), SendResult(), SetDirection(), SOpRaw, SOpRequest, and sRawHdr.

Referenced by Main().

bool clBeamAudio::SendResult GDT *  ,
long 
[private]
 

Definition at line 281 of file BeamAudio.cc.

References DSP, fAttenuation, _stBeamAudioReq::fDirection, _stBeamAudioRes::fDirection, _stBeamAudioRes::fPeakLevel, GDT, GLOBAL_HEADER_LEN, _stBeamAudioRes::lBufLength, Msg, clBeamAudioMsg::SetResult(), SOpResult, sRequest, sResHdr, _stBeamAudioRes::sTimeStamp, and clSockOp::WriteN().

Referenced by ProcessLoop().

int clBeamAudio::Main  ) 
 

Definition at line 317 of file BeamAudio.cc.

References bDebug, ConnectStream(), GetCfg(), GetRq(), InitBeam(), ProcessLoop(), and SendFirst().

Referenced by main().

void clBeamAudio::Stop  )  [inline]
 

Definition at line 92 of file BeamAudio.hh.

References bRun.


Member Data Documentation

bool clBeamAudio::bRun [private]
 

Definition at line 57 of file BeamAudio.hh.

Referenced by clBeamAudio(), ProcessLoop(), and Stop().

int clBeamAudio::iArrayType [private]
 

Definition at line 59 of file BeamAudio.hh.

Referenced by GetCfg(), InitBeam(), ProcessLoop(), and SetDirection().

int clBeamAudio::iShadingType [private]
 

Definition at line 60 of file BeamAudio.hh.

Referenced by GetCfg().

long clBeamAudio::lStartCh [private]
 

Definition at line 61 of file BeamAudio.hh.

Referenced by GetCfg(), and ProcessLoop().

long clBeamAudio::lWindowSize [private]
 

Definition at line 62 of file BeamAudio.hh.

Referenced by GetCfg(), InitBeam(), ProcessLoop(), and SendFirst().

long clBeamAudio::lSensorCount [private]
 

Definition at line 63 of file BeamAudio.hh.

Referenced by GetCfg(), and InitBeam().

GDT clBeamAudio::fSensorSpacing [private]
 

Definition at line 64 of file BeamAudio.hh.

Referenced by GetCfg(), and InitBeam().

char clBeamAudio::cpStreamSocket[_POSIX_PATH_MAX + 1] [private]
 

Definition at line 65 of file BeamAudio.hh.

Referenced by ConnectStream(), and GetCfg().

GDT clBeamAudio::fAttenuation [private]
 

Definition at line 67 of file BeamAudio.hh.

Referenced by clBeamAudio(), and SendResult().

stBeamAudioReq clBeamAudio::sRequest [private]
 

Definition at line 68 of file BeamAudio.hh.

Referenced by GetRq(), InitBeam(), SendResult(), and SetDirection().

stBeamAudioRes clBeamAudio::sResHdr [private]
 

Definition at line 69 of file BeamAudio.hh.

Referenced by SendResult().

stRawDataFirst clBeamAudio::sRawHdr [private]
 

Definition at line 70 of file BeamAudio.hh.

Referenced by ConnectStream(), InitBeam(), ProcessLoop(), and SendFirst().

clCfgFile clBeamAudio::CfgFile [private]
 

Definition at line 71 of file BeamAudio.hh.

Referenced by GetCfg().

clBeamAudioMsg clBeamAudio::Msg [private]
 

Definition at line 72 of file BeamAudio.hh.

Referenced by GetRq(), SendFirst(), and SendResult().

clDSPOp clBeamAudio::DSP [private]
 

Definition at line 73 of file BeamAudio.hh.

Referenced by ProcessLoop(), and SendResult().

clSockClie clBeamAudio::SClient [private]
 

Definition at line 74 of file BeamAudio.hh.

Referenced by ConnectStream().

clSockOp clBeamAudio::SOpRaw [private]
 

Definition at line 75 of file BeamAudio.hh.

Referenced by ConnectStream(), and ProcessLoop().

clSockOp clBeamAudio::SOpRequest [private]
 

Definition at line 76 of file BeamAudio.hh.

Referenced by clBeamAudio(), GetRq(), and ProcessLoop().

clSockOp clBeamAudio::SOpResult [private]
 

Definition at line 77 of file BeamAudio.hh.

Referenced by clBeamAudio(), SendFirst(), and SendResult().

clFreqBeamDipole clBeamAudio::FBeamDipole [private]
 

Definition at line 78 of file BeamAudio.hh.

Referenced by InitBeam(), ProcessLoop(), and SetDirection().

clFreqBeamLine clBeamAudio::FBeamLine [private]
 

Definition at line 79 of file BeamAudio.hh.

Referenced by InitBeam(), ProcessLoop(), and SetDirection().


The documentation for this class was generated from the following files:
Generated on Sun Oct 26 19:12:12 2003 for HASAS by doxygen 1.3.3