vrpn  07.33
Virtual Reality Peripheral Network
vrpn_Sound Class Reference

#include <vrpn_Sound.h>

Inheritance diagram for vrpn_Sound:
Collaboration diagram for vrpn_Sound:

Public Member Functions

 vrpn_Sound (const char *name, vrpn_Connection *c)
 
 ~vrpn_Sound ()
 
- Public Member Functions inherited from vrpn_BaseClass
 vrpn_BaseClass (const char *name, vrpn_Connection *c=NULL)
 Names the device and assigns or opens connection, calls registration methods. More...
 
virtual ~vrpn_BaseClass ()
 
virtual void mainloop ()=0
 Called once through each main loop iteration to handle updates. Remote object mainloop() should call client_mainloop() and then call d_connection->mainloop(). Server object mainloop() should service the device and then call server_mainloop(), but should not normally call d_connection->mainloop(). More...
 
- Public Member Functions inherited from vrpn_BaseClassUnique
 vrpn_BaseClassUnique ()
 
virtual ~vrpn_BaseClassUnique ()
 Unregister all of the message handlers that were to be autodeleted. More...
 
vrpn_ConnectionconnectionPtr ()
 Returns a pointer to the connection this object is using. More...
 

Protected Member Functions

int register_types (void)
 Register the types of messages this device sends/receives. Return 0 on success, -1 on fail. More...
 
vrpn_int32 encodeSound_local (const char *filename, const vrpn_SoundID id, const vrpn_SoundDef soundDef, char **buf)
 
vrpn_int32 decodeSound_local (const char *buf, char **filename, vrpn_SoundID *id, vrpn_SoundDef *soundDef, const int payload)
 
vrpn_int32 encodeSound_remote (const char *filename, const vrpn_SoundID id, char **buf)
 
vrpn_int32 decodeSound_remote (const char *buf, char **filename, vrpn_SoundID *id, const int payload)
 
vrpn_int32 encodeSoundID (const vrpn_SoundID id, char *buf)
 
vrpn_int32 decodeSoundID (const char *buf, vrpn_SoundID *id)
 
vrpn_int32 encodeSoundDef (const vrpn_SoundDef sound, const vrpn_SoundID id, const vrpn_int32 repeat, char *buf)
 
vrpn_int32 decodeSoundDef (const char *buf, vrpn_SoundDef *sound, vrpn_SoundID *id, vrpn_int32 *repeat)
 
vrpn_int32 encodeSoundPlay (const vrpn_SoundID id, const vrpn_int32 repeat, char *buf)
 
vrpn_int32 decodeSoundPlay (const char *buf, vrpn_SoundID *id, vrpn_int32 *repeat)
 
vrpn_int32 encodeListenerVelocity (const vrpn_float64 *velocity, char *buf)
 
vrpn_int32 decodeListenerVelocity (const char *buf, vrpn_float64 *velocity)
 
vrpn_int32 encodeListenerPose (const vrpn_PoseDef pose, char *buf)
 
vrpn_int32 decodeListenerPose (const char *buf, vrpn_PoseDef *pose)
 
vrpn_int32 encodeSoundPose (const vrpn_PoseDef pose, const vrpn_SoundID id, char *buf)
 
vrpn_int32 decodeSoundPose (const char *buf, vrpn_PoseDef *pose, vrpn_SoundID *id)
 
vrpn_int32 encodeSoundVelocity (const vrpn_float64 *velocity, const vrpn_SoundID id, char *buf)
 
vrpn_int32 decodeSoundVelocity (const char *buf, vrpn_float64 *velocity, vrpn_SoundID *id)
 
vrpn_int32 encodeSoundDistInfo (const vrpn_float64 min_back, const vrpn_float64 max_back, const vrpn_float64 min_front, const vrpn_float64 max_front, const vrpn_SoundID id, char *buf)
 
vrpn_int32 decodeSoundDistInfo (const char *buf, vrpn_float64 *min_back, vrpn_float64 *max_back, vrpn_float64 *min_front, vrpn_float64 *max_front, vrpn_SoundID *id)
 
vrpn_int32 encodeSoundConeInfo (const vrpn_float64 cone_inner_angle, const vrpn_float64 cone_outer_angle, const vrpn_float64 cone_gain, const vrpn_SoundID id, char *buf)
 
vrpn_int32 decodeSoundConeInfo (const char *buf, vrpn_float64 *cone_inner_angle, vrpn_float64 *cone_outer_angle, vrpn_float64 *cone_gain, vrpn_SoundID *id)
 
vrpn_int32 encodeSoundDoplerScale (const vrpn_float64 doplerfactor, const vrpn_SoundID id, char *buf)
 
vrpn_int32 decodeSoundDoplerScale (const char *buf, vrpn_float64 *doplerfactor, vrpn_SoundID *id)
 
vrpn_int32 encodeSoundEqFactor (const vrpn_float64 eqfactor, const vrpn_SoundID id, char *buf)
 
vrpn_int32 decodeSoundEqFactor (const char *buf, vrpn_float64 *eqfactor, vrpn_SoundID *id)
 
vrpn_int32 encodeSoundPitch (const vrpn_float64 pitch, const vrpn_SoundID id, char *buf)
 
vrpn_int32 decodeSoundPitch (const char *buf, vrpn_float64 *pitch, vrpn_SoundID *id)
 
vrpn_int32 encodeSoundVolume (const vrpn_float64 volume, const vrpn_SoundID id, char *buf)
 
vrpn_int32 decodeSoundVolume (const char *buf, vrpn_float64 *volume, vrpn_SoundID *id)
 
vrpn_int32 encodeLoadModel_local (const char *filename, char **buf)
 
vrpn_int32 decodeLoadModel_local (const char *buf, char **filename, const int payload)
 
vrpn_int32 encodeLoadModel_remote (const char *filename, char **buf)
 
vrpn_int32 decodeLoadModel_remote (const char *buf, char **filename, const int payload)
 
vrpn_int32 encodeLoadPolyQuad (const vrpn_QuadDef quad, char *buf)
 
vrpn_int32 decodeLoadPolyQuad (const char *buf, vrpn_QuadDef *quad)
 
vrpn_int32 encodeLoadPolyTri (const vrpn_TriDef tri, char *buf)
 
vrpn_int32 decodeLoadPolyTri (const char *buf, vrpn_TriDef *tri)
 
vrpn_int32 encodeLoadMaterial (const vrpn_int32 id, const vrpn_MaterialDef material, char *buf)
 
vrpn_int32 decodeLoadMaterial (const char *buf, vrpn_MaterialDef *material, vrpn_int32 *id)
 
vrpn_int32 encodeSetQuadVert (const vrpn_float64 vertices[4][3], const vrpn_int32 tag, char *buf)
 
vrpn_int32 decodeSetQuadVert (const char *buf, vrpn_float64(*vertices)[4][3], vrpn_int32 *tag)
 
vrpn_int32 encodeSetTriVert (const vrpn_float64 vertices[3][3], const vrpn_int32 tag, char *buf)
 
vrpn_int32 decodeSetTriVert (const char *buf, vrpn_float64(*vertices)[3][3], vrpn_int32 *tag)
 
vrpn_int32 encodeSetPolyOF (const vrpn_float64 openingfactor, const vrpn_int32 tag, char *buf)
 
vrpn_int32 decodeSetPolyOF (const char *buf, vrpn_float64 *openingfactor, vrpn_int32 *tag)
 
vrpn_int32 encodeSetPolyMaterial (const char *material, const vrpn_int32 tag, char *buf)
 
vrpn_int32 decodeSetPolyMaterial (const char *buf, char **material, vrpn_int32 *tag, const int payload)
 
- Protected Member Functions inherited from vrpn_BaseClass
virtual int init (void)
 Initialize things that the constructor can't. Returns 0 on success, -1 on failure. More...
 
virtual int register_senders (void)
 Register the sender for this device (by default, the name of the device). Return 0 on success, -1 on fail. More...
 
- Protected Member Functions inherited from vrpn_BaseClassUnique
int register_autodeleted_handler (vrpn_int32 type, vrpn_MESSAGEHANDLER handler, void *userdata, vrpn_int32 sender=vrpn_ANY_SENDER)
 Registers a handler with the connection, and remembers to delete at destruction. More...
 
int send_text_message (const char *msg, struct timeval timestamp, vrpn_TEXT_SEVERITY type=vrpn_TEXT_NORMAL, vrpn_uint32 level=0)
 Sends a NULL-terminated text message from the device d_sender_id. More...
 
SendTextMessageBoundCall send_text_message (vrpn_TEXT_SEVERITY type=vrpn_TEXT_NORMAL)
 Returns an object you can stream into to send a text message from the device like send_text_message(vrpn_TEXT_WARNING) << "Value of i is: " << i; This use requires including vrpn_SendTextMessageStreamProxy.h. More...
 
void server_mainloop (void)
 Handles functions that all servers should provide in their mainloop() (ping/pong, for example) Should be called by all servers in their mainloop() More...
 
void client_mainloop (void)
 Handles functions that all clients should provide in their mainloop() (warning of no server, for example) Should be called by all clients in their mainloop() More...
 

Protected Attributes

vrpn_int32 load_sound_local
 
vrpn_int32 load_sound_remote
 
vrpn_int32 unload_sound
 
vrpn_int32 play_sound
 
vrpn_int32 stop_sound
 
vrpn_int32 change_sound_status
 
vrpn_int32 set_listener_pose
 
vrpn_int32 set_listener_velocity
 
vrpn_int32 set_sound_pose
 
vrpn_int32 set_sound_velocity
 
vrpn_int32 set_sound_distanceinfo
 
vrpn_int32 set_sound_coneinfo
 
vrpn_int32 set_sound_doplerfactor
 
vrpn_int32 set_sound_eqvalue
 
vrpn_int32 set_sound_pitch
 
vrpn_int32 set_sound_volume
 
vrpn_int32 load_model_local
 
vrpn_int32 load_model_remote
 
vrpn_int32 load_polyquad
 
vrpn_int32 load_polytri
 
vrpn_int32 load_material
 
vrpn_int32 set_polyquad_vertices
 
vrpn_int32 set_polytri_vertices
 
vrpn_int32 set_poly_openingfactor
 
vrpn_int32 set_poly_material
 
vrpn_int32 receive_text_message
 
struct timeval timestamp
 
- Protected Attributes inherited from vrpn_BaseClassUnique
vrpn_Connectiond_connection
 Connection that this object talks to. More...
 
char * d_servicename
 Name of this device, not including the connection part. More...
 
vrpn_int32 d_sender_id
 Sender ID registered with the connection. More...
 
vrpn_int32 d_text_message_id
 ID for text messages. More...
 
vrpn_int32 d_ping_message_id
 Ask the server if they are there. More...
 
vrpn_int32 d_pong_message_id
 Server telling that it is there. More...
 

Additional Inherited Members

- Public Attributes inherited from vrpn_BaseClassUnique
bool shutup
 
vrpn_MESSAGEHANDLER handler
 
vrpn_int32 sender
 
vrpn_int32 type
 
void * userdata
 
- Static Protected Member Functions inherited from vrpn_BaseClassUnique
static int encode_text_message_to_buffer (char *buf, vrpn_TEXT_SEVERITY severity, vrpn_uint32 level, const char *msg)
 Encodes the body of the text message into a buffer, preparing for sending. More...
 
static int decode_text_message_from_buffer (char *msg, vrpn_TEXT_SEVERITY *severity, vrpn_uint32 *level, const char *buf)
 Decodes the body of the text message from a buffer from the connection. More...
 

Detailed Description

Definition at line 95 of file vrpn_Sound.h.

Constructor & Destructor Documentation

◆ vrpn_Sound()

vrpn_Sound::vrpn_Sound ( const char *  name,
vrpn_Connection c 
)

Definition at line 8 of file vrpn_Sound.C.

References vrpn_BaseClass::init().

Here is the call graph for this function:

◆ ~vrpn_Sound()

vrpn_Sound::~vrpn_Sound ( )

Definition at line 67 of file vrpn_Sound.C.

Member Function Documentation

◆ decodeListenerPose()

vrpn_int32 vrpn_Sound::decodeListenerPose ( const char *  buf,
vrpn_PoseDef *  pose 
)
protected

Definition at line 285 of file vrpn_Sound.C.

References vrpn_unbuffer().

Here is the call graph for this function:

◆ decodeListenerVelocity()

vrpn_int32 vrpn_Sound::decodeListenerVelocity ( const char *  buf,
vrpn_float64 *  velocity 
)
protected

Definition at line 335 of file vrpn_Sound.C.

References vrpn_unbuffer().

Here is the call graph for this function:

◆ decodeLoadMaterial()

vrpn_int32 vrpn_Sound::decodeLoadMaterial ( const char *  buf,
vrpn_MaterialDef *  material,
vrpn_int32 *  id 
)
protected

Definition at line 717 of file vrpn_Sound.C.

References MAX_MATERIAL_NAME_LENGTH, and vrpn_unbuffer().

Here is the call graph for this function:

◆ decodeLoadModel_local()

vrpn_int32 vrpn_Sound::decodeLoadModel_local ( const char *  buf,
char **  filename,
const int  payload 
)
protected

Definition at line 603 of file vrpn_Sound.C.

References vrpn_unbuffer().

Here is the call graph for this function:

◆ decodeLoadModel_remote()

vrpn_int32 vrpn_Sound::decodeLoadModel_remote ( const char *  buf,
char **  filename,
const int  payload 
)
protected
Todo:
Remote stuff not supported yet!

Definition at line 622 of file vrpn_Sound.C.

◆ decodeLoadPolyQuad()

vrpn_int32 vrpn_Sound::decodeLoadPolyQuad ( const char *  buf,
vrpn_QuadDef *  quad 
)
protected

Definition at line 648 of file vrpn_Sound.C.

References MAX_MATERIAL_NAME_LENGTH, and vrpn_unbuffer().

Here is the call graph for this function:

◆ decodeLoadPolyTri()

vrpn_int32 vrpn_Sound::decodeLoadPolyTri ( const char *  buf,
vrpn_TriDef *  tri 
)
protected

Definition at line 682 of file vrpn_Sound.C.

References MAX_MATERIAL_NAME_LENGTH, and vrpn_unbuffer().

Here is the call graph for this function:

◆ decodeSetPolyMaterial()

vrpn_int32 vrpn_Sound::decodeSetPolyMaterial ( const char *  buf,
char **  material,
vrpn_int32 *  tag,
const int  payload 
)
protected

Definition at line 836 of file vrpn_Sound.C.

References vrpn_unbuffer().

Here is the call graph for this function:

◆ decodeSetPolyOF()

vrpn_int32 vrpn_Sound::decodeSetPolyOF ( const char *  buf,
vrpn_float64 *  openingfactor,
vrpn_int32 *  tag 
)
protected

Definition at line 810 of file vrpn_Sound.C.

References vrpn_unbuffer().

Here is the call graph for this function:

◆ decodeSetQuadVert()

vrpn_int32 vrpn_Sound::decodeSetQuadVert ( const char *  buf,
vrpn_float64(*)  vertices[4][3],
vrpn_int32 *  tag 
)
protected

Definition at line 750 of file vrpn_Sound.C.

References vrpn_unbuffer().

Here is the call graph for this function:

◆ decodeSetTriVert()

vrpn_int32 vrpn_Sound::decodeSetTriVert ( const char *  buf,
vrpn_float64(*)  vertices[3][3],
vrpn_int32 *  tag 
)
protected

Definition at line 781 of file vrpn_Sound.C.

References vrpn_unbuffer().

Here is the call graph for this function:

◆ decodeSound_local()

vrpn_int32 vrpn_Sound::decodeSound_local ( const char *  buf,
char **  filename,
vrpn_SoundID id,
vrpn_SoundDef *  soundDef,
const int  payload 
)
protected

Definition at line 114 of file vrpn_Sound.C.

References vrpn_unbuffer().

Here is the call graph for this function:

◆ decodeSound_remote()

vrpn_int32 vrpn_Sound::decodeSound_remote ( const char *  buf,
char **  filename,
vrpn_SoundID id,
const int  payload 
)
protected
Todo:
not supported yet

Definition at line 163 of file vrpn_Sound.C.

◆ decodeSoundConeInfo()

vrpn_int32 vrpn_Sound::decodeSoundConeInfo ( const char *  buf,
vrpn_float64 *  cone_inner_angle,
vrpn_float64 *  cone_outer_angle,
vrpn_float64 *  cone_gain,
vrpn_SoundID id 
)
protected

Definition at line 466 of file vrpn_Sound.C.

References vrpn_unbuffer().

Here is the call graph for this function:

◆ decodeSoundDef()

vrpn_int32 vrpn_Sound::decodeSoundDef ( const char *  buf,
vrpn_SoundDef *  sound,
vrpn_SoundID id,
vrpn_int32 *  repeat 
)
protected

Definition at line 233 of file vrpn_Sound.C.

References vrpn_unbuffer().

Here is the call graph for this function:

◆ decodeSoundDistInfo()

vrpn_int32 vrpn_Sound::decodeSoundDistInfo ( const char *  buf,
vrpn_float64 *  min_back,
vrpn_float64 *  max_back,
vrpn_float64 *  min_front,
vrpn_float64 *  max_front,
vrpn_SoundID id 
)
protected

Definition at line 433 of file vrpn_Sound.C.

References vrpn_unbuffer().

Here is the call graph for this function:

◆ decodeSoundDoplerScale()

vrpn_int32 vrpn_Sound::decodeSoundDoplerScale ( const char *  buf,
vrpn_float64 *  doplerfactor,
vrpn_SoundID id 
)
protected

Definition at line 497 of file vrpn_Sound.C.

References vrpn_unbuffer().

Here is the call graph for this function:

◆ decodeSoundEqFactor()

vrpn_int32 vrpn_Sound::decodeSoundEqFactor ( const char *  buf,
vrpn_float64 *  eqfactor,
vrpn_SoundID id 
)
protected

Definition at line 523 of file vrpn_Sound.C.

References vrpn_unbuffer().

Here is the call graph for this function:

◆ decodeSoundID()

vrpn_int32 vrpn_Sound::decodeSoundID ( const char *  buf,
vrpn_SoundID id 
)
protected

Definition at line 183 of file vrpn_Sound.C.

References vrpn_unbuffer().

Here is the call graph for this function:

◆ decodeSoundPitch()

vrpn_int32 vrpn_Sound::decodeSoundPitch ( const char *  buf,
vrpn_float64 *  pitch,
vrpn_SoundID id 
)
protected

Definition at line 550 of file vrpn_Sound.C.

References vrpn_unbuffer().

Here is the call graph for this function:

◆ decodeSoundPlay()

vrpn_int32 vrpn_Sound::decodeSoundPlay ( const char *  buf,
vrpn_SoundID id,
vrpn_int32 *  repeat 
)
protected

Definition at line 311 of file vrpn_Sound.C.

References vrpn_unbuffer().

Here is the call graph for this function:

◆ decodeSoundPose()

vrpn_int32 vrpn_Sound::decodeSoundPose ( const char *  buf,
vrpn_PoseDef *  pose,
vrpn_SoundID id 
)
protected

Definition at line 365 of file vrpn_Sound.C.

References vrpn_unbuffer().

Here is the call graph for this function:

◆ decodeSoundVelocity()

vrpn_int32 vrpn_Sound::decodeSoundVelocity ( const char *  buf,
vrpn_float64 *  velocity,
vrpn_SoundID id 
)
protected

Definition at line 398 of file vrpn_Sound.C.

References vrpn_unbuffer().

Here is the call graph for this function:

◆ decodeSoundVolume()

vrpn_int32 vrpn_Sound::decodeSoundVolume ( const char *  buf,
vrpn_float64 *  volume,
vrpn_SoundID id 
)
protected

Definition at line 576 of file vrpn_Sound.C.

References vrpn_unbuffer().

Here is the call graph for this function:

◆ encodeListenerPose()

vrpn_int32 vrpn_Sound::encodeListenerPose ( const vrpn_PoseDef  pose,
char *  buf 
)
protected

Definition at line 269 of file vrpn_Sound.C.

References vrpn_buffer().

Referenced by vrpn_Sound_Client::setListenerPose().

Here is the call graph for this function:

◆ encodeListenerVelocity()

vrpn_int32 vrpn_Sound::encodeListenerVelocity ( const vrpn_float64 *  velocity,
char *  buf 
)
protected

Definition at line 321 of file vrpn_Sound.C.

References vrpn_buffer().

Referenced by vrpn_Sound_Client::setListenerVelocity().

Here is the call graph for this function:

◆ encodeLoadMaterial()

vrpn_int32 vrpn_Sound::encodeLoadMaterial ( const vrpn_int32  id,
const vrpn_MaterialDef  material,
char *  buf 
)
protected

Definition at line 698 of file vrpn_Sound.C.

References MAX_MATERIAL_NAME_LENGTH, and vrpn_buffer().

Referenced by vrpn_Sound_Client::LoadMaterial().

Here is the call graph for this function:

◆ encodeLoadModel_local()

vrpn_int32 vrpn_Sound::encodeLoadModel_local ( const char *  filename,
char **  buf 
)
protected

Definition at line 587 of file vrpn_Sound.C.

References vrpn_buffer().

Referenced by vrpn_Sound_Client::LoadModel_local().

Here is the call graph for this function:

◆ encodeLoadModel_remote()

vrpn_int32 vrpn_Sound::encodeLoadModel_remote ( const char *  filename,
char **  buf 
)
protected
Todo:
Remote stuff not supported yet!

Definition at line 616 of file vrpn_Sound.C.

◆ encodeLoadPolyQuad()

vrpn_int32 vrpn_Sound::encodeLoadPolyQuad ( const vrpn_QuadDef  quad,
char *  buf 
)
protected

Definition at line 629 of file vrpn_Sound.C.

References MAX_MATERIAL_NAME_LENGTH, and vrpn_buffer().

Referenced by vrpn_Sound_Client::LoadPolyQuad().

Here is the call graph for this function:

◆ encodeLoadPolyTri()

vrpn_int32 vrpn_Sound::encodeLoadPolyTri ( const vrpn_TriDef  tri,
char *  buf 
)
protected

Definition at line 664 of file vrpn_Sound.C.

References MAX_MATERIAL_NAME_LENGTH, and vrpn_buffer().

Referenced by vrpn_Sound_Client::LoadPolyTri().

Here is the call graph for this function:

◆ encodeSetPolyMaterial()

vrpn_int32 vrpn_Sound::encodeSetPolyMaterial ( const char *  material,
const vrpn_int32  tag,
char *  buf 
)
protected

Definition at line 823 of file vrpn_Sound.C.

References vrpn_buffer().

Referenced by vrpn_Sound_Client::setPolyMaterialName().

Here is the call graph for this function:

◆ encodeSetPolyOF()

vrpn_int32 vrpn_Sound::encodeSetPolyOF ( const vrpn_float64  openingfactor,
const vrpn_int32  tag,
char *  buf 
)
protected

Definition at line 796 of file vrpn_Sound.C.

References vrpn_buffer().

Referenced by vrpn_Sound_Client::setPolyOF().

Here is the call graph for this function:

◆ encodeSetQuadVert()

vrpn_int32 vrpn_Sound::encodeSetQuadVert ( const vrpn_float64  vertices[4][3],
const vrpn_int32  tag,
char *  buf 
)
protected

Definition at line 734 of file vrpn_Sound.C.

References vrpn_buffer().

Referenced by vrpn_Sound_Client::setQuadVertices().

Here is the call graph for this function:

◆ encodeSetTriVert()

vrpn_int32 vrpn_Sound::encodeSetTriVert ( const vrpn_float64  vertices[3][3],
const vrpn_int32  tag,
char *  buf 
)
protected

Definition at line 765 of file vrpn_Sound.C.

References vrpn_buffer().

Referenced by vrpn_Sound_Client::setTriVertices().

Here is the call graph for this function:

◆ encodeSound_local()

vrpn_int32 vrpn_Sound::encodeSound_local ( const char *  filename,
const vrpn_SoundID  id,
const vrpn_SoundDef  soundDef,
char **  buf 
)
protected

Definition at line 69 of file vrpn_Sound.C.

References vrpn_buffer().

Referenced by vrpn_Sound_Client::loadSound().

Here is the call graph for this function:

◆ encodeSound_remote()

vrpn_int32 vrpn_Sound::encodeSound_remote ( const char *  filename,
const vrpn_SoundID  id,
char **  buf 
)
protected
Todo:
not supported

Definition at line 156 of file vrpn_Sound.C.

◆ encodeSoundConeInfo()

vrpn_int32 vrpn_Sound::encodeSoundConeInfo ( const vrpn_float64  cone_inner_angle,
const vrpn_float64  cone_outer_angle,
const vrpn_float64  cone_gain,
const vrpn_SoundID  id,
char *  buf 
)
protected

Definition at line 448 of file vrpn_Sound.C.

References vrpn_buffer().

Referenced by vrpn_Sound_Client::setSoundConeInfo().

Here is the call graph for this function:

◆ encodeSoundDef()

vrpn_int32 vrpn_Sound::encodeSoundDef ( const vrpn_SoundDef  sound,
const vrpn_SoundID  id,
const vrpn_int32  repeat,
char *  buf 
)
protected

Definition at line 194 of file vrpn_Sound.C.

References vrpn_buffer().

Here is the call graph for this function:

◆ encodeSoundDistInfo()

vrpn_int32 vrpn_Sound::encodeSoundDistInfo ( const vrpn_float64  min_back,
const vrpn_float64  max_back,
const vrpn_float64  min_front,
const vrpn_float64  max_front,
const vrpn_SoundID  id,
char *  buf 
)
protected

Definition at line 413 of file vrpn_Sound.C.

References vrpn_buffer().

Referenced by vrpn_Sound_Client::setSoundDistances().

Here is the call graph for this function:

◆ encodeSoundDoplerScale()

vrpn_int32 vrpn_Sound::encodeSoundDoplerScale ( const vrpn_float64  doplerfactor,
const vrpn_SoundID  id,
char *  buf 
)
protected

Definition at line 483 of file vrpn_Sound.C.

References vrpn_buffer().

Referenced by vrpn_Sound_Client::setSoundDopScale().

Here is the call graph for this function:

◆ encodeSoundEqFactor()

vrpn_int32 vrpn_Sound::encodeSoundEqFactor ( const vrpn_float64  eqfactor,
const vrpn_SoundID  id,
char *  buf 
)
protected

Definition at line 509 of file vrpn_Sound.C.

References vrpn_buffer().

Referenced by vrpn_Sound_Client::setSoundEqValue().

Here is the call graph for this function:

◆ encodeSoundID()

vrpn_int32 vrpn_Sound::encodeSoundID ( const vrpn_SoundID  id,
char *  buf 
)
protected

Definition at line 172 of file vrpn_Sound.C.

References vrpn_buffer().

Referenced by vrpn_Sound_Client::stopSound(), and vrpn_Sound_Client::unloadSound().

Here is the call graph for this function:

◆ encodeSoundPitch()

vrpn_int32 vrpn_Sound::encodeSoundPitch ( const vrpn_float64  pitch,
const vrpn_SoundID  id,
char *  buf 
)
protected

Definition at line 536 of file vrpn_Sound.C.

References vrpn_buffer().

Referenced by vrpn_Sound_Client::setSoundPitch().

Here is the call graph for this function:

◆ encodeSoundPlay()

vrpn_int32 vrpn_Sound::encodeSoundPlay ( const vrpn_SoundID  id,
const vrpn_int32  repeat,
char *  buf 
)
protected

Definition at line 299 of file vrpn_Sound.C.

References vrpn_buffer().

Referenced by vrpn_Sound_Client::playSound().

Here is the call graph for this function:

◆ encodeSoundPose()

vrpn_int32 vrpn_Sound::encodeSoundPose ( const vrpn_PoseDef  pose,
const vrpn_SoundID  id,
char *  buf 
)
protected

Definition at line 346 of file vrpn_Sound.C.

References vrpn_buffer().

Referenced by vrpn_Sound_Client::setSoundPose().

Here is the call graph for this function:

◆ encodeSoundVelocity()

vrpn_int32 vrpn_Sound::encodeSoundVelocity ( const vrpn_float64 *  velocity,
const vrpn_SoundID  id,
char *  buf 
)
protected

Definition at line 382 of file vrpn_Sound.C.

References vrpn_buffer().

Referenced by vrpn_Sound_Client::setSoundVelocity().

Here is the call graph for this function:

◆ encodeSoundVolume()

vrpn_int32 vrpn_Sound::encodeSoundVolume ( const vrpn_float64  volume,
const vrpn_SoundID  id,
char *  buf 
)
protected

Definition at line 562 of file vrpn_Sound.C.

References vrpn_buffer().

Referenced by vrpn_Sound_Client::setSoundVolume().

Here is the call graph for this function:

◆ register_types()

Member Data Documentation

◆ change_sound_status

vrpn_int32 vrpn_Sound::change_sound_status
protected

Definition at line 110 of file vrpn_Sound.h.

Referenced by register_types(), and vrpn_Sound_Server::vrpn_Sound_Server().

◆ load_material

vrpn_int32 vrpn_Sound::load_material
protected

◆ load_model_local

vrpn_int32 vrpn_Sound::load_model_local
protected

◆ load_model_remote

vrpn_int32 vrpn_Sound::load_model_remote
protected

Definition at line 125 of file vrpn_Sound.h.

Referenced by register_types(), and vrpn_Sound_Server::vrpn_Sound_Server().

◆ load_polyquad

vrpn_int32 vrpn_Sound::load_polyquad
protected

◆ load_polytri

vrpn_int32 vrpn_Sound::load_polytri
protected

◆ load_sound_local

vrpn_int32 vrpn_Sound::load_sound_local
protected

◆ load_sound_remote

vrpn_int32 vrpn_Sound::load_sound_remote
protected

Definition at line 105 of file vrpn_Sound.h.

Referenced by register_types(), and vrpn_Sound_Server::vrpn_Sound_Server().

◆ play_sound

vrpn_int32 vrpn_Sound::play_sound
protected

◆ receive_text_message

vrpn_int32 vrpn_Sound::receive_text_message
protected

Definition at line 134 of file vrpn_Sound.h.

◆ set_listener_pose

vrpn_int32 vrpn_Sound::set_listener_pose
protected

◆ set_listener_velocity

vrpn_int32 vrpn_Sound::set_listener_velocity
protected

◆ set_poly_material

vrpn_int32 vrpn_Sound::set_poly_material
protected

◆ set_poly_openingfactor

vrpn_int32 vrpn_Sound::set_poly_openingfactor
protected

◆ set_polyquad_vertices

vrpn_int32 vrpn_Sound::set_polyquad_vertices
protected

◆ set_polytri_vertices

vrpn_int32 vrpn_Sound::set_polytri_vertices
protected

◆ set_sound_coneinfo

vrpn_int32 vrpn_Sound::set_sound_coneinfo
protected

◆ set_sound_distanceinfo

vrpn_int32 vrpn_Sound::set_sound_distanceinfo
protected

◆ set_sound_doplerfactor

vrpn_int32 vrpn_Sound::set_sound_doplerfactor
protected

◆ set_sound_eqvalue

vrpn_int32 vrpn_Sound::set_sound_eqvalue
protected

◆ set_sound_pitch

vrpn_int32 vrpn_Sound::set_sound_pitch
protected

◆ set_sound_pose

vrpn_int32 vrpn_Sound::set_sound_pose
protected

◆ set_sound_velocity

vrpn_int32 vrpn_Sound::set_sound_velocity
protected

◆ set_sound_volume

vrpn_int32 vrpn_Sound::set_sound_volume
protected

◆ stop_sound

vrpn_int32 vrpn_Sound::stop_sound
protected

◆ timestamp

◆ unload_sound

vrpn_int32 vrpn_Sound::unload_sound
protected

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