diff options
Diffstat (limited to 'src/audio')
-rw-r--r-- | src/audio/AudioManager.h | 1 | ||||
-rw-r--r-- | src/audio/DMAudio.cpp | 3 | ||||
-rw-r--r-- | src/audio/DMAudio.h | 4 |
3 files changed, 7 insertions, 1 deletions
diff --git a/src/audio/AudioManager.h b/src/audio/AudioManager.h index 0cbd742d..f592d3f3 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; |