Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
12 changed files
with
95 additions
and
24 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
/***************************************************************************** | ||
* | ||
* PROJECT: Multi Theft Auto v1.0 | ||
* LICENSE: See LICENSE in the top level directory | ||
* FILE: game_sa/CAESoundManagerSA.cpp | ||
* PURPOSE: Audio engine sound manager | ||
* | ||
* Multi Theft Auto is available from http://www.multitheftauto.com/ | ||
* | ||
*****************************************************************************/ | ||
#include "StdInc.h" | ||
|
||
#define FUNC_CAESoundManager__CancelSoundsInBankSlot 0x4EFC60 | ||
|
||
CAESoundManagerSA* g_pAESoundManagerSA = nullptr; | ||
|
||
CAESoundManagerSA::CAESoundManagerSA ( CAESoundManagerSAInterface * pInterface ) | ||
: m_pInterface { pInterface } | ||
{ | ||
g_pAESoundManagerSA = this; | ||
} | ||
|
||
void CAESoundManagerSA::CancelSoundsInBankSlot ( uint uiGroup, uint uiIndex ) | ||
{ | ||
using CAESoundManager__CancelSoundsInBankSlot = CAESound * ( __thiscall * ) ( CAESoundManagerSAInterface *, uint, uint ); | ||
static auto pCancelSoundsInBankSlot = reinterpret_cast < CAESoundManager__CancelSoundsInBankSlot > ( FUNC_CAESoundManager__CancelSoundsInBankSlot ); | ||
pCancelSoundsInBankSlot ( m_pInterface, uiGroup, uiIndex ); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
/***************************************************************************** | ||
* | ||
* PROJECT: Multi Theft Auto v1.0 | ||
* LICENSE: See LICENSE in the top level directory | ||
* FILE: game_sa/CAESoundManagerSA.h | ||
* PURPOSE: Header file for audio engine sound manager class | ||
* | ||
* Multi Theft Auto is available from http://www.multitheftauto.com/ | ||
* | ||
*****************************************************************************/ | ||
#pragma once | ||
|
||
#include <game/CAESoundManager.h> | ||
|
||
#define CLASS_CAESoundManager 0xB62CB0 | ||
|
||
class CAESoundManagerSAInterface | ||
{ | ||
|
||
}; | ||
|
||
class CAESoundManagerSA : public CAESoundManager | ||
{ | ||
public: | ||
CAESoundManagerSA ( CAESoundManagerSAInterface * pInterface ); | ||
|
||
public: | ||
virtual void CancelSoundsInBankSlot ( uint uiGroup, uint uiIndex ) override; | ||
|
||
private: | ||
CAESoundManagerSAInterface * m_pInterface; | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
/***************************************************************************** | ||
* | ||
* PROJECT: Multi Theft Auto v1.0 | ||
* LICENSE: See LICENSE in the top level directory | ||
* FILE: sdk/game/CAESoundManager.h | ||
* PURPOSE: Game audio engine manager interface | ||
* | ||
* Multi Theft Auto is available from http://www.multitheftauto.com/ | ||
* | ||
*****************************************************************************/ | ||
#pragma once | ||
|
||
class CAESoundManager | ||
{ | ||
public: | ||
virtual void CancelSoundsInBankSlot ( uint uiGroup, uint uiIndex ) = 0; | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters