Commit Graph

7 Commits

Author SHA1 Message Date
6b3872dc97 refactor(game_time): introduce Timer for time-based updates and rename existing to TickTimer
Add a new `Timer` class that operates in seconds (using `TimeType`) alongside the existing `TickTimer` which uses `TickType`. Rename the original `Timer` to `TickTimer` throughout the codebase. Update `ClientWorld` to maintain separate maps for tick-based and time-based timers, and replace the hardcoded footstep timer in `ClientPlayer` with a time-based callback timer. Also add `play_2d` to `AudioEngine` and load an ambient bird sound to demonstrate the new timer functionality.
2026-07-07 15:32:07 +08:00
7eebed40e0 fix(audio): set distance model, reduce max distance, fix sound pos
- Set OpenAL distance model to AL_INVERSE_DISTANCE_CLAMPED in engine.
- Reduced AL_MAX_DISTANCE from 100 to 48 for better falloff.
- Fixed block sound position to use world coordinates instead of local block coordinates.
2026-07-07 14:52:55 +08:00
5264755a7e feat(audio): add per-channel volume control and config reload 2026-07-07 13:29:28 +08:00
68ddd78a6f feat(audio): add footstep sounds and fix audio listener orientation 2026-07-07 11:20:17 +08:00
765f5ca714 feat(audio): add 3D audio playback with source pool and auto-loading 2026-07-06 20:26:20 +08:00
960df4a459 feat(audio): add audio fade in/out and fix delta time naming 2026-07-06 17:25:18 +08:00
d23540ff86 feat(audio): integrate OpenAL audio engine with WAV/MP3/FLAC support 2026-07-06 15:56:42 +08:00