summaryrefslogtreecommitdiffstats
path: root/src/audio
diff options
context:
space:
mode:
Diffstat (limited to 'src/audio')
-rw-r--r--src/audio/AudioScriptObject.cpp7
-rw-r--r--src/audio/AudioScriptObject.h131
-rw-r--r--src/audio/DMAudio.cpp6
-rw-r--r--src/audio/DMAudio.h1
4 files changed, 145 insertions, 0 deletions
diff --git a/src/audio/AudioScriptObject.cpp b/src/audio/AudioScriptObject.cpp
new file mode 100644
index 00000000..7cb81f7a
--- /dev/null
+++ b/src/audio/AudioScriptObject.cpp
@@ -0,0 +1,7 @@
+#include "common.h"
+#include "AudioScriptObject.h"
+
+void PlayOneShotScriptObject(UInt8 id, CVector const &pos)
+{
+ ((void (__cdecl *)(UInt8, CVector const &))0x57C5F0)(id, pos);
+} \ No newline at end of file
diff --git a/src/audio/AudioScriptObject.h b/src/audio/AudioScriptObject.h
new file mode 100644
index 00000000..a30af679
--- /dev/null
+++ b/src/audio/AudioScriptObject.h
@@ -0,0 +1,131 @@
+#pragma once
+
+enum /*eSounds*/
+{
+ SOUND_TEST_1 = 0,
+ _SOUND_UNK_1 = 1,
+ _SOUND_UNK_2 = 2,
+ _SOUND_UNK_3 = 3,
+ _SOUND_CLUB_1_S = 4,
+ _SOUND_CLUB_1_L = 5,
+ _SOUND_CLUB_2_S = 6,
+ _SOUND_CLUB_2_L = 7,
+ _SOUND_CLUB_3_S = 8,
+ _SOUND_CLUB_3_L = 9,
+ _SOUND_CLUB_4_S = 10,
+ _SOUND_CLUB_4_L = 11,
+ _SOUND_CLUB_5_S = 12,
+ _SOUND_CLUB_5_L = 13,
+ _SOUND_CLUB_6_S = 14,
+ _SOUND_CLUB_6_L = 15,
+ _SOUND_CLUB_7_S = 16,
+ _SOUND_CLUB_7_L = 17,
+ _SOUND_CLUB_8_S = 18,
+ _SOUND_CLUB_8_L = 19,
+ _SOUND_CLUB_9_S = 20,
+ _SOUND_CLUB_9_L = 21,
+ _SOUND_CLUB_10_S = 22,
+ _SOUND_CLUB_10_L = 23,
+ _SOUND_CLUB_11_S = 24,
+ _SOUND_CLUB_11_L = 25,
+ _SOUND_CLUB_12_S = 26,
+ _SOUND_CLUB_12_L = 27,
+ _SOUND_CLUB_RAGGA_S = 28,
+ _SOUND_CLUB_RAGGA_L = 29,
+ SOUND_STRIP_CLUB_LOOP_1_S = 30,
+ _SOUND_STRIP_CLUB_LOOP_1_L = 31,
+ SOUND_STRIP_CLUB_LOOP_2_S = 32,
+ _SOUND_STRIP_CLUB_LOOP_2_L = 33,
+ _SOUND_SFX_WORKSHOP_1 = 34,
+ _SOUND_SFX_WORKSHOP_2 = 35,
+ _SOUND_SAWMILL_LOOP_S = 36,
+ SOUND_SAWMILL_LOOP_L = 37,
+ _SOUND_DOG_FOOD_FACTORY_S = 38,
+ _SOUND_DOG_FOOD_FACTORY_L = 39,
+ _SOUND_LAUNDERETTE_1 = 40,
+ _SOUND_LAUNDERETTE_2 = 41,
+ _SOUND_RESTAURANT_CHINATOWN_S = 42,
+ _SOUND_RESTAURANT_CHINATOWN_L = 43,
+ _SOUND_RESTAURANT_ITALY_S = 44,
+ _SOUND_RESTAURANT_ITALY_L = 45,
+ _SOUND_RESTAURANT_GENERIC_1_S = 46,
+ _SOUND_RESTAURANT_GENERIC_1_L = 47,
+ _SOUND_RESTAURANT_GENERIC_2_S = 48,
+ _SOUND_RESTAURANT_GENERIC_2_L = 49,
+ _SOUND_AIRPORT_ANNOUNCEMENT_S = 50,
+ _SOUND_AIRPORT_ANNOUNCEMENT_L = 51,
+ _SOUND_SHOP_LOOP_1 = 52,
+ _SOUND_SHOP_LOOP_2 = 53,
+ _SOUND_CINEMA_S = 54,
+ _SOUND_CINEMA_L = 55,
+ _SOUND_DOCKS_FOGHORN_S = 56,
+ _SOUND_DOCKS_FOGHORN_L = 57,
+ _SOUND_HOME_S = 58,
+ _SOUND_HOME_L = 59,
+ _SOUND_PIANO_BAR = 60,
+ _SOUND_CLUB = 61,
+ SOUND_PORN_CINEMA_1_S = 62,
+ _SOUND_PORN_CINEMA_1_L = 63,
+ SOUND_PORN_CINEMA_2_S = 64,
+ _SOUND_PORN_CINEMA_2_L = 65,
+ SOUND_PORN_CINEMA_3_S = 66,
+ _SOUND_PORN_CINEMA_3_L = 67,
+ _SOUND_BANK_ALARM_LOOP_S = 68,
+ SOUND_BANK_ALARM_LOOP_L = 69,
+ _SOUND_POLICE_BALL_LOOP_S = 70,
+ SOUND_POLICE_BALL_LOOP_L = 71,
+ _SOUND_RAVE_LOOP_INDUSTRIAL_S = 72,
+ SOUND_RAVE_LOOP_INDUSTRIAL_L = 73,
+ _SOUND_UNK_74 = 74,
+ _SOUND_UNK_75 = 75,
+ _SOUND_POLICE_CELL_BEATING_LOOP_S = 76,
+ SOUND_POLICE_CELL_BEATING_LOOP_L = 77,
+ SOUND_INJURED_PED_MALE_OUCH_S = 78,
+ SOUND_INJURED_PED_MALE_OUCH_L = 79,
+ SOUND_INJURED_PED_FEMALE_OUCH_S = 80,
+ SOUND_INJURED_PED_FEMALE_OUCH_L = 81,
+ SOUND_EVIDENCE_PICKUP = 82,
+ SOUND_UNLOAD_GOLD = 83,
+ _SOUND_RAVE_INDUSTRIAL_S = 84,
+ _SOUND_RAVE_INDUSTRIAL_L = 85,
+ _SOUND_RAVE_COMMERCIAL_S = 86,
+ _SOUND_RAVE_COMMERCIAL_L = 87,
+ _SOUND_RAVE_SUBURBAN_S = 88,
+ _SOUND_RAVE_SUBURBAN_L = 89,
+ _SOUND_GROAN_S = 90,
+ _SOUND_GROAN_L = 91,
+ SOUND_GATE_START_CLUNK = 92,
+ SOUND_GATE_STOP_CLUNK = 93,
+ SOUND_PART_MISSION_COMPLETE = 94,
+ SOUND_CHUNKY_RUN_SHOUT = 95,
+ SOUND_SECURITY_GUARD_RUN_AWAY_SHOUT = 96,
+ SOUND_RACE_START_1 = 97,
+ SOUND_RACE_START_2 = 98,
+ SOUND_RACE_START_3 = 99,
+ SOUND_RACE_START_GO = 100,
+ SOUND_SWAT_PED_SHOUT = 101,
+ SOUND_PRETEND_FIRE_LOOP = 102,
+ SOUND_AMMUNATION_CHAT_1 = 103,
+ SOUND_AMMUNATION_CHAT_2 = 104,
+ SOUND_AMMUNATION_CHAT_3 = 105,
+ _SOUND_BULLET_WALL_1 = 106,
+ _SOUND_BULLET_WALL_2 = 107,
+ _SOUND_BULLET_WALL_3 = 108,
+ _SOUND_UNK_109 = 109,
+ _SOUND_GLASSFX2_1 = 110,
+ _SOUND_GLASSFX2_2 = 111,
+ _SOUND_PHONE_RING = 112,
+ _SOUND_UNK_113 = 113,
+ _SOUND_GLASS_SMASH_1 = 114,
+ _SOUND_GLASS_SMASH_2 = 115,
+ _SOUND_GLASS_CRACK = 116,
+ _SOUND_GLASS_SHARD = 117,
+ _SOUND_WOODEN_BOX_SMASH = 118,
+ _SOUND_CARDBOARD_BOX_SMASH = 119,
+ _SOUND_COL_CAR = 120,
+ _SOUND_TYRE_BUMP = 121,
+ _SOUND_BULLET_SHELL_HIT_GROUND_1 = 122,
+ _SOUND_BULLET_SHELL_HIT_GROUND_2 = 123,
+};
+
+extern void PlayOneShotScriptObject(UInt8 id, CVector const &pos); \ No newline at end of file
diff --git a/src/audio/DMAudio.cpp b/src/audio/DMAudio.cpp
index 1ab5a52f..400f3fdc 100644
--- a/src/audio/DMAudio.cpp
+++ b/src/audio/DMAudio.cpp
@@ -5,3 +5,9 @@
cDMAudio &DMAudio = *(cDMAudio*)0x95CDBE;
WRAPPER void cDMAudio::ReportCollision(CEntity *A, CEntity *B, uint8 surfA, uint8 surfB, float impulse, float speed) { EAXJMP(0x57CBE0); }
+
+
+void cDMAudio::ResetTimers(UInt32 timerval)
+{
+ ((void (__thiscall *)(cDMAudio *, UInt32))0x57CCD0)(this, timerval);
+} \ No newline at end of file
diff --git a/src/audio/DMAudio.h b/src/audio/DMAudio.h
index 140c6493..b6d5fc64 100644
--- a/src/audio/DMAudio.h
+++ b/src/audio/DMAudio.h
@@ -6,5 +6,6 @@ class cDMAudio
{
public:
void ReportCollision(CEntity *A, CEntity *B, uint8 surfA, uint8 surfB, float impulse, float speed);
+ void ResetTimers(UInt32 timerval);
};
extern cDMAudio &DMAudio;