group2 0.1.0
CSE 125 Group 2
Loading...
Searching...
No Matches
SfxSystem.hpp File Reference

Client-side sound effects system. More...

#include "AudioMath.hpp"
#include "AudioRuntime.hpp"
#include "SfxTypes.hpp"
#include "ecs/components/ClientId.hpp"
#include "ecs/registry/Registry.hpp"
#include "particles/ParticleEvents.hpp"
#include <SDL3/SDL.h>
#include <array>
#include <cstdint>
#include <mutex>
#include <span>
#include <string>
#include <unordered_map>
#include <vector>
Include dependency graph for SfxSystem.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  SfxRuntimeStats
class  SfxSystem
 Client-side sound effects system. More...
struct  SfxSystem::Source

Detailed Description

Client-side sound effects system.

Owns the SDL3 audio device, clip bank, source pool, and custom mixer. Follows the same init / update / quit lifecycle as ParticleSystem. Subscribes to entt::dispatcher events (WeaponFiredEvent, ExplosionEvent) and detects client-side state changes (health, death, kills) each update().