diff options
author | aap <aap@papnet.eu> | 2019-08-03 15:08:31 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-08-03 15:08:31 +0200 |
commit | 3910055bac7856a9bacab8e0c6877f9f60207285 (patch) | |
tree | 37a42c0b9ecdf75b8d4a524dbf76a10e9b8fe984 /src/audio | |
parent | Merge pull request #178 from Fire-Head/master (diff) | |
parent | Merge remote-tracking branch 'upstream/master' (diff) | |
download | re3-3910055bac7856a9bacab8e0c6877f9f60207285.tar re3-3910055bac7856a9bacab8e0c6877f9f60207285.tar.gz re3-3910055bac7856a9bacab8e0c6877f9f60207285.tar.bz2 re3-3910055bac7856a9bacab8e0c6877f9f60207285.tar.lz re3-3910055bac7856a9bacab8e0c6877f9f60207285.tar.xz re3-3910055bac7856a9bacab8e0c6877f9f60207285.tar.zst re3-3910055bac7856a9bacab8e0c6877f9f60207285.zip |
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; |