Difference between revisions of "SFX"

From GTAMods Wiki
Jump to navigation Jump to search
(iii ped and gang sfx)
m
 
(2 intermediate revisions by 2 users not shown)
Line 5: Line 5:
 
=== SDT ===
 
=== SDT ===
 
==== GTA 2 ====
 
==== GTA 2 ====
Each entry in the SDT file is 28 bytes in size:
+
Each entry in the SDT file is 24 bytes in size:
 
  4b - int - offset of audio file in sfx.raw
 
  4b - int - offset of audio file in sfx.raw
 
  4b - int - size of audio file in bytes
 
  4b - int - size of audio file in bytes
Line 13: Line 13:
 
  4b - int - loop end, where looping would end relative to audio file's position, -1 for end of audio file
 
  4b - int - loop end, where looping would end relative to audio file's position, -1 for end of audio file
  
==== GTA III and Vice City ====
+
==== GTA III and Vice City (PS2) ====
Each entry in the SDT file is 24 bytes in size:
+
Each entry in the SDT file is 12 bytes in size:
 +
4b - int - offset of audio file in sfx.raw
 +
4b - int - size of audio file in bytes
 +
4b - int - samples per sec, the speed of audio
 +
 
 +
==== GTA III and Vice City (PC) ====
 +
Each entry in the SDT file is 20 bytes in size:
 
  4b - int - offset of audio file in sfx.raw
 
  4b - int - offset of audio file in sfx.raw
 
  4b - int - size of audio file in bytes
 
  4b - int - size of audio file in bytes
Line 367: Line 373:
 
|0459 - 0523 ||cop talk sfx
 
|0459 - 0523 ||cop talk sfx
 
|-
 
|-
|0524 - 0547 ||SWAT talk sfx
+
|0524 - 0547 ||swat talk sfx
 
|-
 
|-
|0548 - 0559 ||FBI talk sfx
+
|0548 - 0565 ||fbi talk sfx
 
|-
 
|-
|0560 - 0565 ||army talk sfx
+
|0566 - 0595 ||Police helicopter Bullhorn
|-
 
|0566 - 0595 || Cops on Helicopter Bullhorn
 
 
|-
 
|-
 
|0596 - 0601 ||54 black docker male, car collision/stuck in traffic
 
|0596 - 0601 ||54 black docker male, car collision/stuck in traffic
Line 387: Line 391:
 
|0620 - 0622 ||54 black docker male, threatened with gun
 
|0620 - 0622 ||54 black docker male, threatened with gun
 
|-
 
|-
|0623 - 0637 || Army
+
|0623 - 0652 ||army talk sfx
 
|-
 
|-
|0638 - 0652 || Army
+
|0653 - 0679 ||player talk sfx (gasps and grunts)
|-
 
|0653 - 0679 || All Types of Gasping
 
 
|-
 
|-
 
|0680 - 0686 ||43 black project female old, car collision/stuck in traffic
 
|0680 - 0686 ||43 black project female old, car collision/stuck in traffic
Line 407: Line 409:
 
|0721 - 0722 ||43 black project female old, investigate event
 
|0721 - 0722 ||43 black project female old, investigate event
 
|-
 
|-
|[[041C|0723 - 0727]] ||Chunky Lee Chong
+
|[[041C|0723 - 0727]] ||Chunky Lee Chong talk sfx
 
|-
 
|-
 
|0728 - 0732 ||09 pimp, car collision/stuck in traffic
 
|0728 - 0732 ||09 pimp, car collision/stuck in traffic
Line 423: Line 425:
 
|0776 - 0777 ||09 pimp, investigate event
 
|0776 - 0777 ||09 pimp, investigate event
 
|-
 
|-
|0778 - 0860 || male01_nu
+
|0778 - 0860 ||normal male talk sfx
 
|-
 
|-
 
|0861 - 0867 || Spanked Up Mad Men
 
|0861 - 0867 || Spanked Up Mad Men
 
|-
 
|-
|0868 - 0884 ||8-Ball
+
|0868 - 0884 ||8-Ball talk sfx
 
|-
 
|-
|0885 - 0899 ||Salvatore
+
|0885 - 0899 ||Salvatore talk sfx
 
|-
 
|-
|0900 - 0919 ||Misty
+
|0900 - 0919 ||Misty talk sfx
 
|-
 
|-
 
|0920 - 0993 ||medic talk sfx
 
|0920 - 0993 ||medic talk sfx
Line 1,029: Line 1,031:
 
|2270        ||47 Chinatown female old, investigate event
 
|2270        ||47 Chinatown female old, investigate event
 
|-
 
|-
|2271 - 2308 || Women Gasping/Screaming
+
|2271 - 2308 ||generic female talk sfx (screams, gasps, and grunts)
 
|-
 
|-
 
|2309 - 2313 ||24 black criminal, car collision/stuck in traffic
 
|2309 - 2313 ||24 black criminal, car collision/stuck in traffic
Line 1,181: Line 1,183:
 
|2641        ||74 white construction worker, getting jacked
 
|2641        ||74 white construction worker, getting jacked
 
|-
 
|-
|2642 - 2654 || taxi_d
+
|2642 - 2667 ||taxi driver talk sfx
 
|-
 
|-
|2655 - 2667 || cabbie
+
|[[041C|2668 - 2679]] ||security guard talk sfx
|-
 
|[[041C|2668 - 2679]] ||security guard
 
 
|-
 
|-
 
|2680 - 2683 ||39 black female prostitute, casual conversation v1
 
|2680 - 2683 ||39 black female prostitute, casual conversation v1
Line 1,263: Line 1,263:
 
|2837 - 2840 ||51 Little Italy female old, investigate event
 
|2837 - 2840 ||51 Little Italy female old, investigate event
 
|-
 
|-
|2841 - 2877 || Men Gasping/Screaming
+
|2841 - 2877 ||generic male talk sfx (screams, gasps, and grunts)
 
|-
 
|-
 
|2878 - 2886 ||32 white fat male, casual conversation
 
|2878 - 2886 ||32 white fat male, casual conversation
Line 1,398: Line 1,398:
 
|[[020C#Vice City|0049]] ||Molotov Cocktail explosion
 
|[[020C#Vice City|0049]] ||Molotov Cocktail explosion
 
|-
 
|-
|[[Weapon#Vice City|0050 - 0051]] ||fire Pistol
+
|[[ProcessPedOneShots|0050 - 0051]] ||fire Pistol
 
|-
 
|-
 
|0052 - 0053 ||unused fire AK
 
|0052 - 0053 ||unused fire AK
 
|-
 
|-
|[[Weapon#Vice City|0054 - 0055]] ||fire Uzi/Minigun, drive-by
+
|[[ProcessPedOneShots|0054 - 0055]] ||fire Uzi/Minigun, drive-by
 
|-
 
|-
|[[Weapon#Vice City|0056]] ||halt fire Uzi/MP5
+
|[[ProcessPedOneShots|0056]] ||halt fire Uzi/MP5
 
|-
 
|-
|[[Weapon#Vice City|0057 - 0058]] ||fire Sniper Rifle/PSG-1
+
|[[ProcessPedOneShots|0057 - 0058]] ||fire Sniper Rifle/PSG-1
 
|-
 
|-
|[[020C#Vice City|0059]] - [[Weapon#Vice City|0060]] ||fire Rocket Launcher, Hunter rockets, mine explosion
+
|[[020C#Vice City|0059]] - [[ProcessPedOneShots|0060]] ||fire Rocket Launcher, Hunter rockets, mine explosion
 
|-
 
|-
 
|0062 - 0063 ||missile travel
 
|0062 - 0063 ||missile travel
Line 1,414: Line 1,414:
 
|0064 - 0065 ||Flamethrower
 
|0064 - 0065 ||Flamethrower
 
|-
 
|-
|[[Weapon#Vice City|0066 - 0067]] ||fire Chrome Shotgun/Stubby Shotgun
+
|[[ProcessPedOneShots|0066 - 0067]] ||fire Chrome Shotgun/Stubby Shotgun
 
|-
 
|-
|[[Weapon#Vice City|0068 - 0069]] ||fire M60, Hunter/Sea Sparrow/Police Helicopter gun, drive-by in helicopter
+
|[[ProcessPedOneShots|0068 - 0069]] ||fire M60, Hunter/Sea Sparrow/Police Helicopter gun, drive-by in helicopter
 
|-
 
|-
|[[Weapon#Vice City|0070]] ||halt fire M60
+
|[[ProcessPedOneShots|0070]] ||halt fire M60
 
|-
 
|-
|[[Weapon#Vice City|0071 - 0072]] ||fire Tec-9/Ingram Mac 10
+
|[[ProcessPedOneShots|0071 - 0072]] ||fire Tec-9/Ingram Mac 10
 
|-
 
|-
|[[Weapon#Vice City|0073]] ||halt fire Tec 9/Ingram Mac 10
+
|[[ProcessPedOneShots|0073]] ||halt fire Tec 9/Ingram Mac 10
 
|-
 
|-
|[[Weapon#Vice City|0074 - 0075]] ||fire M4/Ruger
+
|[[ProcessPedOneShots|0074 - 0075]] ||fire M4/Ruger
 
|-
 
|-
|[[Weapon#Vice City|0076]] ||halt fire M4/Ruger
+
|[[ProcessPedOneShots|0076]] ||halt fire M4/Ruger
 
|-
 
|-
|[[Weapon#Vice City|0077]] ||reload Pistol/Colt Python
+
|[[ProcessPedOneShots|0077]] ||reload Pistol/Colt Python
 
|-
 
|-
|[[Weapon#Vice City|0078]] ||reload general
+
|[[ProcessPedOneShots|0078]] ||reload general
 
|-
 
|-
|[[Weapon#Vice City|0079]] ||reload Rocket Launcher
+
|[[ProcessPedOneShots|0079]] ||reload Rocket Launcher
 
|-
 
|-
|[[Weapon#Vice City|0080]] ||reload Sniper Rifle/PSG-1
+
|[[ProcessPedOneShots|0080]] ||reload Sniper Rifle/PSG-1
 
|-
 
|-
|[[Weapon#Vice City|0081]] ||blunt weapon swing
+
|[[ProcessPedOneShots|0081]] ||blunt weapon swing
 
|-
 
|-
|[[Weapon#Vice City|0082 - 0084]] ||fire Minigun
+
|[[ProcessPedOneShots|0082 - 0084]] ||fire Minigun
 
|-
 
|-
|[[Weapon#Vice City|0085 - 0086]] ||fire Spaz Shotgun
+
|[[ProcessPedOneShots|0085 - 0086]] ||fire Spaz Shotgun
 
|-
 
|-
|[[Weapon#Vice City|0087]] ||halt fire Spaz Shotgun
+
|[[ProcessPedOneShots|0087]] ||halt fire Spaz Shotgun
 
|-
 
|-
|[[Weapon#Vice City|0088 - 0089]] ||fire Colt Python
+
|[[ProcessPedOneShots|0088 - 0089]] ||fire Colt Python
 
|-
 
|-
|[[Weapon#Vice City|0090 - 0091]] ||fire MP5
+
|[[ProcessPedOneShots|0090 - 0091]] ||fire MP5
 
|-
 
|-
 
|0092 - 0094|| Tommy hitting regular wall
 
|0092 - 0094|| Tommy hitting regular wall
Line 1,508: Line 1,508:
 
|0162 - 0164 || bullet hitting car or ground
 
|0162 - 0164 || bullet hitting car or ground
 
|-
 
|-
|[[Weapon#Vice City|0165 - 0166]] ||blunt weapon hit
+
|[[ProcessPedOneShots|0165 - 0166]] ||blunt weapon hit
 
|-
 
|-
|[[Weapon#Vice City|0167 - 0170]] ||fist fight
+
|[[ProcessPedOneShots|0167 - 0170]] ||fist fight
 
|-
 
|-
|[[Weapon#Vice City|0171]] ||sharp weapon swing
+
|[[ProcessPedOneShots|0171]] ||sharp weapon swing
 
|-
 
|-
|[[Weapon#Vice City|0172 - 0173]] ||sharp weapon hit
+
|[[ProcessPedOneShots|0172 - 0173]] ||sharp weapon hit
 
|-
 
|-
|[[Weapon#Vice City|0174 - 0175]] ||Brass knuckles/Hammer hit
+
|[[ProcessPedOneShots|0174 - 0175]] ||Brass knuckles/Hammer hit
 
|-
 
|-
 
|0176 || opening/closing garage
 
|0176 || opening/closing garage
Line 1,714: Line 1,714:
 
|[[Collision File#SFX and particles|0506 - 0510]] ||footsteps wood
 
|[[Collision File#SFX and particles|0506 - 0510]] ||footsteps wood
 
|-
 
|-
|[[Collision File#SFX and particles|0496 - 0500]] ||footsteps metal
+
|[[Collision File#SFX and particles|0511 - 0515]] ||footsteps metal
 
|-
 
|-
 
|[[Collision File#SFX and particles|0516 - 0519]] ||footsteps water
 
|[[Collision File#SFX and particles|0516 - 0519]] ||footsteps water
Line 2,446: Line 2,446:
 
|2913        ||085 HNA/086 HNB, hail taxi v3
 
|2913        ||085 HNA/086 HNB, hail taxi v3
 
|-
 
|-
|2914 - 2941 || female screams 1
+
|2914 - 3012 ||generic female talk sfx (screams, gasps, and grunts)
|-
 
|2942 - 2985 || female grunt
 
|-
 
|2986 - 3012 || female screams 2
 
|-
 
|3013 - 3047 || male screams 1
 
|-
 
|3048 - 3126 || male grunts
 
|-
 
|3127 - 3161 || male screams 2
 
|-
 
|3162 - 3194 || cuban paramedic
 
|-
 
|3195 - 3227 || paramedic
 
|-
 
|3228 - 3245 || FBI #1
 
|-
 
|3246 - 3260 || FBI #2
 
|-
 
|3231 - 3263 || blank
 
|-
 
|3264 - 3279 || FBI #3
 
 
|-
 
|-
|3280 - 3281 || blank
+
|3013 - 3161 ||generic male talk sfx (screams, gasps, and grunts)
 
|-
 
|-
|3282 - 3295 || SWAT #1
+
|3162 - 3227 ||medic talk sfx
 
|-
 
|-
|3296 - 3309 || SWAT #2
+
|3228 - 3281 ||fbi talk sfx
 
|-
 
|-
|3310 - 3323 || SWAT #3
+
|3282 - 3323 ||swat talk sfx
 
|-
 
|-
 
|3324 - 3330 ||105 WFYG1, stuck in traffic
 
|3324 - 3330 ||105 WFYG1, stuck in traffic

Latest revision as of 09:23, 18 July 2020

This article describes format of SFX files prior to San Andreas. For explanation of an SFX file in San Andreas see SFX (SA)

SFX is a file archive of short audio effects used in GTA 2, GTA III, and Vice City. They consist of two file types, .RAW and .SDT, and are typically located in the ..\audio folder in the game directory. Similar to an IMG archive, the .SDT file is a binary file containing the directory and the .RAW contains the archive.

File format

SDT

GTA 2

Each entry in the SDT file is 24 bytes in size:

4b - int - offset of audio file in sfx.raw
4b - int - size of audio file in bytes
4b - int - samples per sec, the speed of audio
4b - int - unknown
4b - int - loop start, where looping would begin relative to audio file's position, 0 for beginning of audio file
4b - int - loop end, where looping would end relative to audio file's position, -1 for end of audio file

GTA III and Vice City (PS2)

Each entry in the SDT file is 12 bytes in size:

4b - int - offset of audio file in sfx.raw
4b - int - size of audio file in bytes
4b - int - samples per sec, the speed of audio

GTA III and Vice City (PC)

Each entry in the SDT file is 20 bytes in size:

4b - int - offset of audio file in sfx.raw
4b - int - size of audio file in bytes
4b - int - samples per sec, the speed of audio
4b - int - loop start, where looping would begin relative to audio file's position, 0 for beginning of audio file
4b - int - loop end, where looping would end relative to audio file's position, -1 for end of audio file

RAW

The RAW file contains raw WAV files. Headers must be added for use in standard audio players when extracted. The following is the standard header in terms of the SDT format.

Offset Type Identifier Description
0x00 char[4] ChunkID "RIFF"
0x04 dword ChunkSize size from SDT format + 36
0x08 char[4] Format "WAVE"
0x0C char[4] Subchunk1ID "fmt "
0x10 dword SubchunkSize 16
0x14 word AudioFormat 1 (PCM)
0x16 word NumChannels 1 (mono)
0x18 dword SampleRate sample rate from SDT format
0x1C dword ByteRate sample rate from SDT format * 2
0x20 word BlockAlign 2
0x22 word BitsPerSample 16
0x24 char[4] Subchunk2ID "data"
0x28 dword Sunchunk2Size size from SDT format
0x2C - Data raw SFX data

SFX files content

GTA III

Vice City

Tools

See also

External links