OpenNI 1.5.4: xn::MockAudioGenerator Class Reference

OpenNI

xn::MockAudioGenerator Class Reference

#include <XnCppWrapper.h>

Inheritance diagram for xn::MockAudioGenerator:

List of all members.

Public Member Functions

 MockAudioGenerator (XnNodeHandle hNode=NULL)
 MockAudioGenerator (const NodeWrapper &other)
XnStatus Create (Context &context, const XnChar *strName=NULL)
XnStatus CreateBasedOn (AudioGenerator &other, const XnChar *strName=NULL)
XnStatus SetData (XnUInt32 nFrameID, XnUInt64 nTimestamp, XnUInt32 nDataSize, const XnUInt8 *pAudioBuffer)
XnStatus SetData (const AudioMetaData &audioMD, XnUInt32 nFrameID, XnUInt64 nTimestamp)
XnStatus SetData (const AudioMetaData &audioMD)

Detailed Description

Represents a Mock Audio Generator node


Constructor & Destructor Documentation

xn::MockAudioGenerator::MockAudioGenerator ( XnNodeHandle  hNode = NULL) [inline]

Ctor

Parameters:
[in]hNodeNode handle
xn::MockAudioGenerator::MockAudioGenerator ( const NodeWrapper other) [inline]

Member Function Documentation

XnStatus xn::MockAudioGenerator::Create ( Context context,
const XnChar *  strName = NULL 
) [inline]

Creates a mock audio generator

Parameters:
[in]contextThe context in which the node should be generated
[in]strNameOptional. The name of the new node.
XnStatus xn::MockAudioGenerator::CreateBasedOn ( AudioGenerator other,
const XnChar *  strName = NULL 
) [inline]

Creates a mock audio generator, copying the initial state from another audio generator.

Parameters:
[in]otherThe audio generator to copy state from
[in]strNameOptional. The name of the new node.
XnStatus xn::MockAudioGenerator::SetData ( XnUInt32  nFrameID,
XnUInt64  nTimestamp,
XnUInt32  nDataSize,
const XnUInt8 *  pAudioBuffer 
) [inline]
For full details and usage, see xnMockAudioSetData
XnStatus xn::MockAudioGenerator::SetData ( const AudioMetaData audioMD,
XnUInt32  nFrameID,
XnUInt64  nTimestamp 
) [inline]

Sets the data of the mock node from a meta data object, overriding frame ID and timestamp

Parameters:
[in]audioMDObject to take data from
[in]nFrameIDFrame ID
[in]nTimestampTimestamp
XnStatus xn::MockAudioGenerator::SetData ( const AudioMetaData audioMD) [inline]

Sets the data of the mock node from a meta data object

Parameters:
[in]audioMDObject to take data from

The documentation for this class was generated from the following file:
Generated on Wed May 16 2012 10:16:07 for OpenNI 1.5.4 by   doxygen 1.7.5.1