Reload: two metal clicks
Railgun sound effect
railgun.wav · 1350 ms · -16.2 LUFS · One-shot · CC0
railgunshootLoop
Take 1/4Charge whine, then a piercing shot
DUR 1350 msPEAK -1.6 dBFSLOUDNESS -16.2 LUFSPCM 44.1 kHz / 16-bit
Take
Engine integration code
Bus: SFX# Godot 4 (GDScript) — Multi-take AudioStreamRandomizer for railgun
extends Node
var _sfx := AudioStreamRandomizer.new()
@onready var _player := AudioStreamPlayer.new()
func _ready() -> void:
_sfx.add_stream(0, preload("res://audio/shoot/railgun_t1.wav"))
_sfx.add_stream(1, preload("res://audio/shoot/railgun_t2.wav"))
_sfx.random_pitch = 1.05
_sfx.random_volume_offset_db = 1.2
_player.bus = "SFX"
_player.max_polyphony = 4
_player.stream = _sfx
add_child(_player)
func play_railgun() -> void:
_player.play()// Unity (C#) — Pooled pitch-jittered one-shot playback for railgun
using UnityEngine;
using UnityEngine.Audio;
public class RailgunTrigger : MonoBehaviour
{
[SerializeField] private AudioClip[] takes; // Assign railgun_t1..t4.wav
[SerializeField] private AudioMixerGroup mixerGroup; // Route to SFX
private AudioSource[] _pool;
private int _cursor;
private void Awake()
{
_pool = new AudioSource[4];
for (int i = 0; i < _pool.Length; i++)
{
_pool[i] = gameObject.AddComponent<AudioSource>();
_pool[i].playOnAwake = false;
_pool[i].outputAudioMixerGroup = mixerGroup;
}
}
public void PlayRailgun()
{
if (takes == null || takes.Length == 0) return;
AudioSource src = _pool[_cursor++ % _pool.Length];
src.pitch = Random.Range(0.96f, 1.04f);
src.PlayOneShot(takes[Random.Range(0, takes.Length)], 0.9f);
}
}// Phaser 3 (JS) — Rate-limited one-shot with detune variance for railgun
preload() {
this.load.audio('railgun', 'audio/shoot/railgun.wav');
}
playRailgun() {
const now = this.time.now;
if (now - (this._lastRailgun ?? 0) < 35) return; // 35ms anti-stack cooldown
this._lastRailgun = now;
this.sound.play('railgun', {
volume: 0.85,
detune: Phaser.Math.Between(-50, 50), // cents
});
}// Web Audio API (ES Module) — Zero-dependency playback for railgun
const ctx = new AudioContext();
let railgunBuf = null;
export async function loadRailgun() {
const res = await fetch('/audio/shoot/railgun.wav');
railgunBuf = await ctx.decodeAudioData(await res.arrayBuffer());
}
export function playRailgun(pitchSemitones = 0) {
if (!railgunBuf) return;
if (ctx.state === 'suspended') ctx.resume();
const src = ctx.createBufferSource();
src.buffer = railgunBuf;
src.loop = false;
src.playbackRate.value = Math.pow(2, pitchSemitones / 12);
src.connect(ctx.destination);
src.start();
return src;
}
// Construct 3: Import railgun.wav into Project -> Sounds, then run Audio -> Play "railgun" (not looping) on tag "sfx".Acoustic specs & synthesis layers
| Identifier | railgun |
|---|---|
| Category | Shots & lasers |
| Playback mode | One-shot |
| Duration | 1.350 s (1350 ms) |
| Loudness (400 ms max) | -16.21 LUFS (target -16) |
| True peak / sample peak | -1.38 dBTP / -1.62 dBFS |
| Spectral centroid | 5078 Hz |
| Synthesis FX | Echo, Reverb, Drive |
| Export format | 44,100 Hz · 16-bit PCM Mono WAV |
| License | CC0 1.0 Public Domain |
| Take | Duration | Loudness | True peak | Audition |
|---|---|---|---|---|
| Take 1 | 1350 ms | -16.21 LUFS | -1.38 dBTP | |
| Take 2 | 1290 ms | -16.29 LUFS | -1.74 dBTP | |
| Take 3 | 1290 ms | -16.24 LUFS | -1.31 dBTP | |
| Take 4 | 1300 ms | -16.30 LUFS | -1.20 dBTP |
| Layer | Wave | Pitch / sweep | Env (A/H/D) | Filter | Gain |
|---|---|---|---|---|---|
| L1 | sine | 600 -> 3200 Hz | 250/0/20 ms | Bypass | 0.35 |
| L2 | saw | 3200 -> 140 Hz | 1/0/350 ms | LP 7000->800Hz | 1.00 |
| L3 | noise | Broadband | 1/0/200 ms | HP 2000Hz | 0.50 |
| L4 | sine | 100 -> 40 Hz | 1/0/200 ms | Bypass | 1.00 |
More shots & lasers sound effects
All shots & lasers SFXBowstring released
Automatic burst, five rounds
Brass shell casings tinkle on the floor
Flamethrower burst: roaring hiss
Grenade launcher: hollow thoomp