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

VoiceTraceFileSource Class Reference

#include <netelem.h>

Inheritance diagram for VoiceTraceFileSource:

PacketSource NetElement List of all members.

Public Member Functions

 VoiceTraceFileSource (const char *infile, bool loop, int offset, int nfpp, timeunits tuPerSample, char activeCode, int activeBitSize, char sidCode, int sidBitSize)
void Start (timeunits now)

Detailed Description

Voice source that takes samples from a file.


Constructor & Destructor Documentation

VoiceTraceFileSource::VoiceTraceFileSource const char *  infile,
bool  loop,
int  offset,
int  nfpp,
timeunits  tuPerSample,
char  activeCode,
int  activeBitSize,
char  sidCode,
int  sidBitSize
 

Creates a voice source that obtains real samples from a file.

Parameters:
infile name of the file containing sample frame types. The file format is a raw sequence of char identifying frame types (no spaces between frame identifiers)
loop play the same file continuously
offset position to start reading from
nfpp number of codec frames per packet
tuPerSample separation between two consecutive codec frames, in timeunits
activeCode char value that identifies active frames in the file
activeBitSize size of active frames, in bits
sidCode char value that identifies SID frames in the file
sidBitSize size of SID frames, in bits


Member Function Documentation

void VoiceTraceFileSource::Start timeunits  now  )  [virtual]
 

Activate the VoiceTraceFileSource

Parameters:
now time to start reading packets

Reimplemented from PacketSource.


The documentation for this class was generated from the following files:
Generated on Fri Jan 19 15:35:17 2007 by  doxygen 1.4.2