summaryrefslogtreecommitdiffstats
path: root/src/audio/DMAudio.cpp
diff options
context:
space:
mode:
authoraap <aap@papnet.eu>2019-08-28 12:58:42 +0200
committerGitHub <noreply@github.com>2019-08-28 12:58:42 +0200
commit792893df594b8cd09d7e9e8486148aa0126eef3a (patch)
treef775059bd6cd968b096f989243e496bea776ae4f /src/audio/DMAudio.cpp
parentMerge pull request #197 from Nick007J/master (diff)
parentAudio fixes (diff)
downloadre3-792893df594b8cd09d7e9e8486148aa0126eef3a.tar
re3-792893df594b8cd09d7e9e8486148aa0126eef3a.tar.gz
re3-792893df594b8cd09d7e9e8486148aa0126eef3a.tar.bz2
re3-792893df594b8cd09d7e9e8486148aa0126eef3a.tar.lz
re3-792893df594b8cd09d7e9e8486148aa0126eef3a.tar.xz
re3-792893df594b8cd09d7e9e8486148aa0126eef3a.tar.zst
re3-792893df594b8cd09d7e9e8486148aa0126eef3a.zip
Diffstat (limited to 'src/audio/DMAudio.cpp')
-rw-r--r--src/audio/DMAudio.cpp15
1 files changed, 7 insertions, 8 deletions
diff --git a/src/audio/DMAudio.cpp b/src/audio/DMAudio.cpp
index 6fb6d1e5..82267858 100644
--- a/src/audio/DMAudio.cpp
+++ b/src/audio/DMAudio.cpp
@@ -7,7 +7,6 @@
cDMAudio &DMAudio = *(cDMAudio*)0x95CDBE;
-
void
cDMAudio::Initialise(void)
{
@@ -29,7 +28,7 @@ cDMAudio::Service(void)
int32
cDMAudio::CreateEntity(eAudioType type, void *UID)
{
- return AudioManager.CreateEntity(type, UID);
+ return AudioManager.CreateEntity(type, (CPhysical *)UID);
}
void
@@ -80,7 +79,7 @@ cDMAudio::SetEffectsFadeVol(uint8 volume)
uint8 vol = volume;
if ( vol > MAX_VOLUME ) vol = MAX_VOLUME;
- AudioManager.SetEffectsFadeVol(vol);
+ AudioManager.SetEffectsFadeVolume(vol);
}
void
@@ -89,7 +88,7 @@ cDMAudio::SetMusicFadeVol(uint8 volume)
uint8 vol = volume;
if ( vol > MAX_VOLUME ) vol = MAX_VOLUME;
- AudioManager.SetMusicFadeVol(vol);
+ AudioManager.SetMusicFadeVolume(vol);
}
uint8
@@ -165,15 +164,15 @@ cDMAudio::IsAudioInitialised(void)
}
void
-cDMAudio::ReportCrime(eCrimeType crime, CVector const &pos)
+cDMAudio::ReportCrime(eCrimeType crime, const CVector &pos)
{
- AudioManager.ReportCrime(crime, pos);
+ AudioManager.ReportCrime(crime, &pos);
}
int32
cDMAudio::CreateLoopingScriptObject(cAudioScriptObject *scriptObject)
{
- int32 audioEntity = AudioManager.CreateEntity(AUDIOTYPE_SCRIPTOBJECT, scriptObject);
+ int32 audioEntity = AudioManager.CreateEntity(AUDIOTYPE_SCRIPTOBJECT, (CPhysical *)scriptObject);
if ( AEHANDLE_IS_OK(audioEntity) )
AudioManager.SetEntityStatus(audioEntity, true);
@@ -190,7 +189,7 @@ cDMAudio::DestroyLoopingScriptObject(int32 audioEntity)
void
cDMAudio::CreateOneShotScriptObject(cAudioScriptObject *scriptObject)
{
- int32 audioEntity = AudioManager.CreateEntity(AUDIOTYPE_SCRIPTOBJECT, scriptObject);
+ int32 audioEntity = AudioManager.CreateEntity(AUDIOTYPE_SCRIPTOBJECT, (CPhysical *)scriptObject);
if ( AEHANDLE_IS_OK(audioEntity) )
{