summaryrefslogtreecommitdiffstats
path: root/src/audio
diff options
context:
space:
mode:
authorNikolay Korolev <nickvnuk@gmail.com>2019-08-03 15:01:13 +0200
committerNikolay Korolev <nickvnuk@gmail.com>2019-08-03 15:01:13 +0200
commitebbcd92de28d37f1dd36c9120f92c958e394ff75 (patch)
treefc3d907017652eb186c0c690cc81a16feec46e22 /src/audio
parentsome CPed cleanup (diff)
downloadre3-ebbcd92de28d37f1dd36c9120f92c958e394ff75.tar
re3-ebbcd92de28d37f1dd36c9120f92c958e394ff75.tar.gz
re3-ebbcd92de28d37f1dd36c9120f92c958e394ff75.tar.bz2
re3-ebbcd92de28d37f1dd36c9120f92c958e394ff75.tar.lz
re3-ebbcd92de28d37f1dd36c9120f92c958e394ff75.tar.xz
re3-ebbcd92de28d37f1dd36c9120f92c958e394ff75.tar.zst
re3-ebbcd92de28d37f1dd36c9120f92c958e394ff75.zip
Diffstat (limited to 'src/audio')
-rw-r--r--src/audio/AudioManager.h1
-rw-r--r--src/audio/DMAudio.cpp3
-rw-r--r--src/audio/DMAudio.h4
3 files changed, 7 insertions, 1 deletions
diff --git a/src/audio/AudioManager.h b/src/audio/AudioManager.h
index 1ae50b2f..4a59721b 100644
--- a/src/audio/AudioManager.h
+++ b/src/audio/AudioManager.h
@@ -175,7 +175,6 @@ class CPed;
struct cAudioScriptObject {
int16 m_wSound;
- char gap_2[2];
CVector m_vecPos;
int m_nAudioEntityId;
diff --git a/src/audio/DMAudio.cpp b/src/audio/DMAudio.cpp
index 2019c394..6c5ad6e3 100644
--- a/src/audio/DMAudio.cpp
+++ b/src/audio/DMAudio.cpp
@@ -35,3 +35,6 @@ WRAPPER void cDMAudio::SetRadioInCar(int32) { EAXJMP(0x57CE60); }
WRAPPER void cDMAudio::DestroyEntity(int32) { EAXJMP(0x57C7F0); }
WRAPPER void cDMAudio::ClearMissionAudio(void) { EAXJMP(0x57CE20); }
WRAPPER void cDMAudio::ReportCrime(eCrimeType crime, const CVector &pos) { EAXJMP(0x57CAD0); }
+WRAPPER void cDMAudio::CreateOneShotScriptObject(cAudioScriptObject*) { EAXJMP(0x57CB60); }
+WRAPPER int32 cDMAudio::CreateLoopingScriptObject(cAudioScriptObject*) { EAXJMP(0x57CB00); }
+WRAPPER void cDMAudio::DestroyLoopingScriptObject(int32) { EAXJMP(0x57CB40); }
diff --git a/src/audio/DMAudio.h b/src/audio/DMAudio.h
index 907755b9..09daea5c 100644
--- a/src/audio/DMAudio.h
+++ b/src/audio/DMAudio.h
@@ -174,6 +174,7 @@ enum eSound : int16
class CEntity;
enum eCrimeType;
+struct cAudioScriptObject;
class cDMAudio
{
@@ -206,5 +207,8 @@ public:
void DestroyEntity(int32);
void ClearMissionAudio(void);
void ReportCrime(eCrimeType crime, const CVector &pos);
+ void CreateOneShotScriptObject(cAudioScriptObject*);
+ int32 CreateLoopingScriptObject(cAudioScriptObject*);
+ void DestroyLoopingScriptObject(int32);
};
extern cDMAudio &DMAudio;