OpenNI 1.3.2
Public Member Functions | List of all members
xn::MockAudioGenerator Class Reference

#include <XnCppWrapper.h>

Inheritance diagram for xn::MockAudioGenerator:
Inheritance graph

Public Member Functions

 MockAudioGenerator (XnNodeHandle hNode=NULL)
 
 MockAudioGenerator (const NodeWrapper &other)
 
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)
 
XnStatus Create (Context &context, const XnChar *strName=NULL)
 
XnStatus CreateBasedOn (AudioGenerator &other, const XnChar *strName=NULL)
 
- Public Member Functions inherited from xn::AudioGenerator
 AudioGenerator (XnNodeHandle hNode=NULL)
 
 AudioGenerator (const NodeWrapper &other)
 
void GetMetaData (AudioMetaData &metaData) const
 
const XnUChar * GetAudioBuffer () const
 
XnUInt32 GetSupportedWaveOutputModesCount () const
 
XnStatus GetSupportedWaveOutputModes (XnWaveOutputMode *aSupportedModes, XnUInt32 &nCount) const
 
XnStatus SetWaveOutputMode (const XnWaveOutputMode &OutputMode)
 
XnStatus GetWaveOutputMode (XnWaveOutputMode &OutputMode) const
 
XnStatus RegisterToWaveOutputModeChanges (StateChangedHandler handler, void *pCookie, XnCallbackHandle &hCallback)
 
void UnregisterFromWaveOutputModeChanges (XnCallbackHandle hCallback)
 
XnStatus Create (Context &context, Query *pQuery=NULL, EnumerationErrors *pErrors=NULL)
 
- Public Member Functions inherited from xn::Generator
 Generator (XnNodeHandle hNode=NULL)
 
 Generator (const NodeWrapper &other)
 
XnStatus StartGenerating ()
 
XnBool IsGenerating () const
 
XnStatus StopGenerating ()
 
XnStatus RegisterToGenerationRunningChange (StateChangedHandler handler, void *pCookie, XnCallbackHandle &hCallback)
 
void UnregisterFromGenerationRunningChange (XnCallbackHandle hCallback)
 
XnStatus RegisterToNewDataAvailable (StateChangedHandler handler, void *pCookie, XnCallbackHandle &hCallback)
 
void UnregisterFromNewDataAvailable (XnCallbackHandle hCallback)
 
XnBool IsNewDataAvailable (XnUInt64 *pnTimestamp=NULL) const
 
XnStatus WaitAndUpdateData ()
 
XnBool IsDataNew () const
 
const void * GetData ()
 
XnUInt32 GetDataSize () const
 
XnUInt64 GetTimestamp () const
 
XnUInt32 GetFrameID () const
 
const MirrorCapability GetMirrorCap () const
 
MirrorCapability GetMirrorCap ()
 
const
AlternativeViewPointCapability 
GetAlternativeViewPointCap () const
 
AlternativeViewPointCapability GetAlternativeViewPointCap ()
 
const FrameSyncCapability GetFrameSyncCap () const
 
FrameSyncCapability GetFrameSyncCap ()
 
- Public Member Functions inherited from xn::ProductionNode
 ProductionNode (XnNodeHandle hNode=NULL)
 
 ProductionNode (const NodeWrapper &other)
 
NodeInfo GetInfo () const
 
XnStatus AddNeededNode (ProductionNode &needed)
 
XnStatus RemoveNeededNode (ProductionNode &needed)
 
XnBool IsCapabilitySupported (const XnChar *strCapabilityName) const
 
XnStatus SetIntProperty (const XnChar *strName, XnUInt64 nValue)
 
XnStatus SetRealProperty (const XnChar *strName, XnDouble dValue)
 
XnStatus SetStringProperty (const XnChar *strName, const XnChar *strValue)
 
XnStatus SetGeneralProperty (const XnChar *strName, XnUInt32 nBufferSize, const void *pBuffer)
 
XnStatus GetIntProperty (const XnChar *strName, XnUInt64 &nValue) const
 
XnStatus GetRealProperty (const XnChar *strName, XnDouble &dValue) const
 
XnStatus GetStringProperty (const XnChar *strName, XnChar *csValue, XnUInt32 nBufSize) const
 
XnStatus GetGeneralProperty (const XnChar *strName, XnUInt32 nBufferSize, void *pBuffer) const
 
XnStatus LockForChanges (XnLockHandle *phLock)
 
void UnlockForChanges (XnLockHandle hLock)
 
XnStatus LockedNodeStartChanges (XnLockHandle hLock)
 
void LockedNodeEndChanges (XnLockHandle hLock)
 
const ErrorStateCapability GetErrorStateCap () const
 
ErrorStateCapability GetErrorStateCap ()
 
GeneralIntCapability GetGeneralIntCap (const XnChar *strCapability)
 
void GetContext (Context &context) const
 
- Public Member Functions inherited from xn::NodeWrapper
 NodeWrapper (XnNodeHandle hNode)
 
 NodeWrapper (const NodeWrapper &other)
 
NodeWrapperoperator= (const NodeWrapper &other)
 
 ~NodeWrapper ()
 
 operator XnNodeHandle () const
 
XnNodeHandle GetHandle () const
 
XnBool operator== (const NodeWrapper &other)
 
XnBool operator!= (const NodeWrapper &other)
 
XnBool IsValid () const
 
const XnChar * GetName () const
 
XnStatus AddRef ()
 
void Release ()
 
XnStatus Ref ()
 
void Unref ()
 
void SetHandle (XnNodeHandle hNode)
 
void TakeOwnership (XnNodeHandle hNode)
 

Detailed Description

Represents a Mock Audio Generator node

Constructor & Destructor Documentation

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

Ctor

Parameters
hNode[in] Node 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
context[in] The context in which the node should be generated
strName[in] Optional. 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
other[in] The audio generator to copy state from
strName[in] Optional. The name of the new node.
XnStatus xn::MockAudioGenerator::SetData ( XnUInt32  nFrameID,
XnUInt64  nTimestamp,
XnUInt32  nDataSize,
const XnUInt8 *  pAudioBuffer 
)
inline
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
audioMD[in] Object to take data from
nFrameID[in] Frame ID
nTimestamp[in] Timestamp
XnStatus xn::MockAudioGenerator::SetData ( const AudioMetaData audioMD)
inline

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

Parameters
audioMD[in] Object to take data from

The documentation for this class was generated from the following file: