mirror of
https://gitlab.com/GaryOderNichts/re3-wiiu.git
synced 2024-11-26 02:54:14 +01:00
Fix cAudioScriptObject
This commit is contained in:
parent
a9a1bf5056
commit
0f5a771292
@ -4,6 +4,16 @@
|
|||||||
#include "Pools.h"
|
#include "Pools.h"
|
||||||
#include "DMAudio.h"
|
#include "DMAudio.h"
|
||||||
|
|
||||||
|
cAudioScriptObject::cAudioScriptObject()
|
||||||
|
{
|
||||||
|
Reset();
|
||||||
|
};
|
||||||
|
|
||||||
|
cAudioScriptObject::~cAudioScriptObject()
|
||||||
|
{
|
||||||
|
Reset();
|
||||||
|
};
|
||||||
|
|
||||||
void
|
void
|
||||||
cAudioScriptObject::Reset()
|
cAudioScriptObject::Reset()
|
||||||
{
|
{
|
||||||
|
@ -7,6 +7,9 @@ public:
|
|||||||
CVector Posn;
|
CVector Posn;
|
||||||
int32 AudioEntity;
|
int32 AudioEntity;
|
||||||
|
|
||||||
|
cAudioScriptObject();
|
||||||
|
~cAudioScriptObject();
|
||||||
|
|
||||||
void Reset(); /// ok
|
void Reset(); /// ok
|
||||||
|
|
||||||
static void* operator new(size_t);
|
static void* operator new(size_t);
|
||||||
|
@ -203,7 +203,7 @@ cDMAudio::ReportCrime(eCrimeType crime, const CVector &pos)
|
|||||||
int32
|
int32
|
||||||
cDMAudio::CreateLoopingScriptObject(cAudioScriptObject *scriptObject)
|
cDMAudio::CreateLoopingScriptObject(cAudioScriptObject *scriptObject)
|
||||||
{
|
{
|
||||||
int32 audioEntity = AudioManager.CreateEntity(AUDIOTYPE_SCRIPTOBJECT, (CPhysical *)scriptObject);
|
int32 audioEntity = AudioManager.CreateEntity(AUDIOTYPE_SCRIPTOBJECT, scriptObject);
|
||||||
|
|
||||||
if ( AEHANDLE_IS_OK(audioEntity) )
|
if ( AEHANDLE_IS_OK(audioEntity) )
|
||||||
AudioManager.SetEntityStatus(audioEntity, true);
|
AudioManager.SetEntityStatus(audioEntity, true);
|
||||||
@ -220,7 +220,7 @@ cDMAudio::DestroyLoopingScriptObject(int32 audioEntity)
|
|||||||
void
|
void
|
||||||
cDMAudio::CreateOneShotScriptObject(cAudioScriptObject *scriptObject)
|
cDMAudio::CreateOneShotScriptObject(cAudioScriptObject *scriptObject)
|
||||||
{
|
{
|
||||||
int32 audioEntity = AudioManager.CreateEntity(AUDIOTYPE_SCRIPTOBJECT, (CPhysical *)scriptObject);
|
int32 audioEntity = AudioManager.CreateEntity(AUDIOTYPE_SCRIPTOBJECT, scriptObject);
|
||||||
|
|
||||||
if ( AEHANDLE_IS_OK(audioEntity) )
|
if ( AEHANDLE_IS_OK(audioEntity) )
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user