Twilight Princess
Decompilation of The Legend of Zelda: Twilight Princess
Loading...
Searching...
No Matches
Z2SoundObjBase Class Reference

#include <Z2SoundObject.h>

+ Inheritance diagram for Z2SoundObjBase:
+ Collaboration diagram for Z2SoundObjBase:

Public Member Functions

 Z2SoundObjBase ()
 
 ~Z2SoundObjBase ()
 
void deleteObject ()
 
Z2SoundHandlePoolstartCollisionSE (u32, u32, Z2SoundObjBase *)
 
bool isAlive () const
 
void setSoundStarter (Z2SoundStarter *i_soundStarter)
 
virtual void framework (u32, s8)
 
virtual void dispose ()
 
virtual bool stopOK (Z2SoundHandlePool &pool)
 
virtual void init (Vec *pSoundPos, u8 pNumHandles)
 
virtual Z2SoundHandlePoolstartSound (JAISoundID, u32, s8)
 
virtual Z2SoundHandlePoolstartLevelSound (JAISoundID, u32, s8)
 
- Public Member Functions inherited from Z2SoundHandles
 Z2SoundHandles ()
 
 ~Z2SoundHandles ()
 
void initHandlesPool (u8 pNumHandles)
 
void deleteHandlesPool ()
 
Z2SoundHandlePoolgetFreeHandle ()
 
Z2SoundHandlePoolgetLowPrioSound (JAISoundID pSoundId)
 
bool isActive () const
 
Z2SoundHandlePoolgetHandleSoundID (JAISoundID pSoundId)
 
Z2SoundHandlePoolgetHandleUserData (u32 pUserData)
 
void stopAllSounds (u32 fadeout)
 
void stopSound (JAISoundID soundID, u32 param_1)
 
void setPos (const JGeometry::TVec3< f32 > &pos)
 
int getNumHandles () const
 
Z2SoundHandlePoolgetHandle (int index)
 

Public Attributes

Z2SoundStartermSoundStarter
 
JGeometry::TVec3< f32 > * mSoundPos
 
u16 field_0x1c
 
s8 field_0x1e
 
bool mIsInitialized
 

Additional Inherited Members

- Protected Member Functions inherited from JSUList< Z2SoundHandlePool >
 JSUList ()
 
 JSUList (bool init)
 
 ~JSUList ()
 
bool append (JSULink< Z2SoundHandlePool > *link)
 
bool prepend (JSULink< Z2SoundHandlePool > *link)
 
bool insert (JSULink< Z2SoundHandlePool > *before, JSULink< Z2SoundHandlePool > *link)
 
bool remove (JSULink< Z2SoundHandlePool > *link)
 
JSULink< Z2SoundHandlePool > * getFirst () const
 
JSULink< Z2SoundHandlePool > * getLast () const
 
JSULink< Z2SoundHandlePool > * getNth (int index)
 
JSULink< Z2SoundHandlePool > * getEnd () const
 
u32 getNumLinks () const
 
- Protected Member Functions inherited from JSUPtrList
 JSUPtrList ()
 
 JSUPtrList (bool init)
 
 ~JSUPtrList ()
 
void initiate ()
 
void setFirst (JSUPtrLink *first)
 
bool append (JSUPtrLink *ptr)
 
bool prepend (JSUPtrLink *ptr)
 
bool insert (JSUPtrLink *before, JSUPtrLink *ptr)
 
bool remove (JSUPtrLink *ptr)
 
JSUPtrLinkgetNthLink (u32 i) const
 
JSUPtrLinkgetFirstLink () const
 
JSUPtrLinkgetLastLink () const
 
u32 getNumLinks () const
 

Constructor & Destructor Documentation

◆ Z2SoundObjBase()

Z2SoundObjBase::Z2SoundObjBase ( )
Note
initializer list doesn't work since fields were initialized out of structure layout order, indicating original code didn't use initializer list.

◆ ~Z2SoundObjBase()

Z2SoundObjBase::~Z2SoundObjBase ( )

Member Function Documentation

◆ deleteObject()

void Z2SoundObjBase::deleteObject ( )

◆ dispose()

void Z2SoundObjBase::dispose ( )
virtual

◆ framework()

void Z2SoundObjBase::framework ( u32  p1,
s8  p2 
)
virtual

Reimplemented in Z2DopplerSoundObjBase.

◆ init()

void Z2SoundObjBase::init ( Vec pSoundPos,
u8  pNumHandles 
)
virtual

◆ isAlive()

bool Z2SoundObjBase::isAlive ( ) const
inline

◆ setSoundStarter()

void Z2SoundObjBase::setSoundStarter ( Z2SoundStarter i_soundStarter)
inline

◆ startCollisionSE()

Z2SoundHandlePool * Z2SoundObjBase::startCollisionSE ( u32  pId,
u32  pUserData,
Z2SoundObjBase pOther 
)

◆ startLevelSound()

Z2SoundHandlePool * Z2SoundObjBase::startLevelSound ( JAISoundID  pSoundId,
u32  param_1,
s8  param_2 
)
virtual

Reimplemented in Z2SoundObjSimple, and Z2DopplerSoundObjBase.

◆ startSound()

Z2SoundHandlePool * Z2SoundObjBase::startSound ( JAISoundID  pSoundId,
u32  param_1,
s8  param_2 
)
virtual

Reimplemented in Z2SoundObjSimple, and Z2DopplerSoundObjBase.

◆ stopOK()

bool Z2SoundObjBase::stopOK ( Z2SoundHandlePool pool)
virtual

Member Data Documentation

◆ field_0x1c

u16 Z2SoundObjBase::field_0x1c

◆ field_0x1e

s8 Z2SoundObjBase::field_0x1e

◆ mIsInitialized

bool Z2SoundObjBase::mIsInitialized

◆ mSoundPos

JGeometry::TVec3<f32>* Z2SoundObjBase::mSoundPos

◆ mSoundStarter

Z2SoundStarter* Z2SoundObjBase::mSoundStarter

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