mirror of
https://foundry.openuru.org/gitblit/r/CWE-ou-minkata.git
synced 2025-07-17 10:52:46 +00:00
Obliterate hsBool
This commit is contained in:
@ -63,8 +63,8 @@ public:
|
||||
virtual plKey GetSceneObject() const { return fSceneObj; }
|
||||
virtual void SetSceneObject(plKey newNode) { }
|
||||
|
||||
virtual plAudible& SetProperty(int prop, hsBool on) { return *this; }
|
||||
virtual hsBool GetProperty(int prop) { return false; }
|
||||
virtual plAudible& SetProperty(int prop, bool on) { return *this; }
|
||||
virtual bool GetProperty(int prop) { return false; }
|
||||
|
||||
void Play(int index = -1){;}
|
||||
void SynchedPlay(int index = -1) {;}
|
||||
@ -79,8 +79,8 @@ public:
|
||||
void SetVelocity(const hsVector3 vel,int index = -1){;}
|
||||
hsVector3 GetVelocity(int index = -1) const;
|
||||
hsPoint3 GetPosition(int index = -1);
|
||||
void SetLooping(hsBool loop,int index = -1){;} // sets continuous loop or stops looping
|
||||
hsBool IsPlaying(int index = -1){return false;}
|
||||
void SetLooping(bool loop,int index = -1){;} // sets continuous loop or stops looping
|
||||
bool IsPlaying(int index = -1){return false;}
|
||||
virtual void SetTime(double t, int index = -1) {}
|
||||
virtual void Activate(){}
|
||||
virtual void DeActivate(){}
|
||||
@ -89,12 +89,12 @@ public:
|
||||
virtual plSound* GetSound(int i) const { return nil; }
|
||||
virtual int GetSoundIndex(const char *keyname) const { return -1; }
|
||||
virtual void SetVolume(const float volume,int index = -1) {;}
|
||||
virtual void SetFilename(int index, const char *filename, hsBool isCompressed){}
|
||||
virtual void SetFilename(int index, const char *filename, bool isCompressed){}
|
||||
|
||||
virtual void RemoveCallbacks(plSoundMsg* pMsg) {}
|
||||
virtual void AddCallbacks(plSoundMsg* pMsg) {}
|
||||
|
||||
virtual void SetMuted( hsBool muted, int index = -1 ) {;}
|
||||
virtual void SetMuted( bool muted, int index = -1 ) {;}
|
||||
virtual void ToggleMuted( int index = -1 ) {;}
|
||||
virtual void SetTalkIcon(int index, uint32_t str){;}
|
||||
virtual void ClearTalkIcon(){;}
|
||||
|
@ -208,7 +208,7 @@ void plWinAudible::GetStatus(plSoundMsg* pMsg)
|
||||
}
|
||||
}
|
||||
|
||||
hsBool plWinAudible::AddSound( plSound *pSnd, int index, hsBool is3D )
|
||||
bool plWinAudible::AddSound( plSound *pSnd, int index, bool is3D )
|
||||
{
|
||||
hsAssert(pSnd->GetKey() != nil, "Adding a new sound with no key.");
|
||||
if (plgAudioSys::Active())
|
||||
@ -227,7 +227,7 @@ hsBool plWinAudible::AddSound( plSound *pSnd, int index, hsBool is3D )
|
||||
}
|
||||
|
||||
/* Unused
|
||||
int plWinAudible::AddSoundFromResource(plSound *pSnd, void* addr, int32_t size, hsBool is3D )
|
||||
int plWinAudible::AddSoundFromResource(plSound *pSnd, void* addr, int32_t size, bool is3D )
|
||||
{
|
||||
//plWin32Sound* pSnd = new plWin32Sound;
|
||||
//IAssignSoundKey( pSnd, GetKey() ? GetKeyName() : "", fSoundObjs.Count() - 1 );
|
||||
@ -344,7 +344,7 @@ void plWinAudible::SetVolume(const float volume,int index )
|
||||
SND_APPLY_LOOP( index, SetVolume( volume ), ; );
|
||||
}
|
||||
|
||||
void plWinAudible::SetMuted( hsBool muted, int index )
|
||||
void plWinAudible::SetMuted( bool muted, int index )
|
||||
{
|
||||
SND_APPLY_LOOP( index, SetMuted( muted ), ; );
|
||||
}
|
||||
@ -392,7 +392,7 @@ hsPoint3 plWinAudible::GetPosition(int index)
|
||||
return( fSoundObjs[index]->GetPosition() );
|
||||
}
|
||||
|
||||
void plWinAudible::SetLooping(hsBool loop,int index)
|
||||
void plWinAudible::SetLooping(bool loop,int index)
|
||||
{
|
||||
SND_APPLY_LOOP( index, SetProperty( plSound::kPropLooping, loop ), ; );
|
||||
}
|
||||
@ -407,7 +407,7 @@ void plWinAudible::SetFadeOut( const int type, const float length, int index
|
||||
SND_APPLY_LOOP( index, SetFadeOutEffect( (plSound::plFadeParams::Type)type, length ), ; );
|
||||
}
|
||||
|
||||
void plWinAudible::SetFilename(int index, const char *filename, hsBool isCompressed)
|
||||
void plWinAudible::SetFilename(int index, const char *filename, bool isCompressed)
|
||||
{
|
||||
if(index < 0 || index >= fSoundObjs.Count())
|
||||
{
|
||||
@ -426,7 +426,7 @@ void plWinAudible::SetFilename(int index, const char *filename, hsBool isCompres
|
||||
}
|
||||
}
|
||||
|
||||
hsBool plWinAudible::IsPlaying(int index)
|
||||
bool plWinAudible::IsPlaying(int index)
|
||||
{
|
||||
int count = fSoundObjs.Count();
|
||||
|
||||
@ -508,7 +508,7 @@ void plWinAudible::DeActivate()
|
||||
}
|
||||
}
|
||||
|
||||
hsBool plWinAudible::MsgReceive(plMessage* msg)
|
||||
bool plWinAudible::MsgReceive(plMessage* msg)
|
||||
{
|
||||
plGenRefMsg *refMsg;
|
||||
if (refMsg = plGenRefMsg::ConvertNoRef(msg))
|
||||
@ -650,7 +650,7 @@ pl2WayWinAudible::~pl2WayWinAudible()
|
||||
delete fVoiceRecorder;
|
||||
}
|
||||
|
||||
hsBool pl2WayWinAudible::MsgReceive(plMessage* msg)
|
||||
bool pl2WayWinAudible::MsgReceive(plMessage* msg)
|
||||
{
|
||||
plEvalMsg* pMsg = plEvalMsg::ConvertNoRef(msg);
|
||||
if (pMsg && fVoiceRecorder)
|
||||
@ -671,7 +671,7 @@ hsBool pl2WayWinAudible::MsgReceive(plMessage* msg)
|
||||
return plWinAudible::MsgReceive(msg);
|
||||
}
|
||||
|
||||
void pl2WayWinAudible::Init(hsBool isLocal)
|
||||
void pl2WayWinAudible::Init(bool isLocal)
|
||||
{
|
||||
if (!fVoicePlayer)
|
||||
{
|
||||
|
@ -72,8 +72,8 @@ public:
|
||||
virtual plKey GetSceneObject() const { return fSceneObj; }
|
||||
virtual void SetSceneObject(plKey obj);
|
||||
|
||||
virtual plAudible& SetProperty(int prop, hsBool on) { return *this; }
|
||||
virtual hsBool GetProperty(int prop) { return false; }
|
||||
virtual plAudible& SetProperty(int prop, bool on) { return *this; }
|
||||
virtual bool GetProperty(int prop) { return false; }
|
||||
|
||||
virtual plAudible& SetTransform(const hsMatrix44& l2w, const hsMatrix44& w2l, int index = -1);
|
||||
|
||||
@ -90,30 +90,30 @@ public:
|
||||
virtual void SetVelocity(const hsVector3 vel,int index = -1);
|
||||
hsVector3 GetVelocity(int index = -1) const;
|
||||
hsPoint3 GetPosition(int index = -1);
|
||||
void SetLooping(hsBool loop,int index = -1); // sets continuous loop or stops looping
|
||||
hsBool IsPlaying(int index = -1);
|
||||
void SetLooping(bool loop,int index = -1); // sets continuous loop or stops looping
|
||||
bool IsPlaying(int index = -1);
|
||||
void SetTime(double t, int index = -1);
|
||||
void SetOuterVol(const int v,int index = -1); // volume for the outer cone (if applicable)
|
||||
void SetConeAngles(int inner, int outer,int index = -1);
|
||||
void RemoveCallbacks(plSoundMsg* pMsg);
|
||||
void AddCallbacks(plSoundMsg* pMsg);
|
||||
hsBool AddSound(plSound *pSnd, int index,hsBool is3D);
|
||||
int AddSoundFromResource(plSound *pSnd, void* addr, int32_t size, hsBool is3D);
|
||||
bool AddSound(plSound *pSnd, int index,bool is3D);
|
||||
int AddSoundFromResource(plSound *pSnd, void* addr, int32_t size, bool is3D);
|
||||
virtual void GetStatus(plSoundMsg* pMsg);
|
||||
virtual int GetNumSounds() const {return fSoundObjs.Count();}
|
||||
virtual plSound* GetSound(int i) const;
|
||||
virtual int GetSoundIndex(const char *keyname) const;
|
||||
virtual void SetVolume(const float volume,int index = -1);
|
||||
virtual void SetMuted( hsBool muted, int index = -1 );
|
||||
virtual void SetMuted( bool muted, int index = -1 );
|
||||
virtual void ToggleMuted( int index = -1 );
|
||||
virtual void SetTalkIcon(int index, uint32_t str){;}
|
||||
virtual void ClearTalkIcon(){;}
|
||||
void SetFilename(int index, const char *filename, hsBool isCompressed);
|
||||
void SetFilename(int index, const char *filename, bool isCompressed);
|
||||
|
||||
virtual void SetFadeIn( const int type, const float length, int index = -1 );
|
||||
virtual void SetFadeOut( const int type, const float length, int index = -1 );
|
||||
|
||||
virtual hsBool MsgReceive(plMessage* pMsg);
|
||||
virtual bool MsgReceive(plMessage* pMsg);
|
||||
|
||||
virtual void Activate();
|
||||
virtual void DeActivate();
|
||||
@ -145,8 +145,8 @@ public:
|
||||
CLASSNAME_REGISTER( pl2WayWinAudible );
|
||||
GETINTERFACE_ANY( pl2WayWinAudible, plWinAudible );
|
||||
|
||||
virtual hsBool MsgReceive(plMessage* pMsg);
|
||||
virtual void Init(hsBool isLocal);
|
||||
virtual bool MsgReceive(plMessage* pMsg);
|
||||
virtual void Init(bool isLocal);
|
||||
virtual void Activate();
|
||||
virtual void DeActivate();
|
||||
virtual void Read(hsStream* s, hsResMgr* mgr);
|
||||
|
@ -57,7 +57,7 @@ plWinAudibleProxy::~plWinAudibleProxy()
|
||||
{
|
||||
}
|
||||
|
||||
hsBool plWinAudibleProxy::Init(plWinAudible* aud)
|
||||
bool plWinAudibleProxy::Init(plWinAudible* aud)
|
||||
{
|
||||
plProxyGen::Init(aud);
|
||||
|
||||
|
@ -52,7 +52,7 @@ public:
|
||||
plWinAudibleProxy();
|
||||
virtual ~plWinAudibleProxy();
|
||||
|
||||
hsBool Init(plWinAudible* aud);
|
||||
bool Init(plWinAudible* aud);
|
||||
|
||||
protected:
|
||||
plWinAudible* fOwner;
|
||||
|
Reference in New Issue
Block a user