Kelsidavis-WoWee/src/audio
Kelsi 1a937fa69a Make city bell tolls mark real server time like actual clock towers
Changed bell tolls from random intervals to proper timekeeping mechanism:

How it works:
- Bells now toll at the top of every hour (minute == 0)
- Number of tolls indicates the hour in 12-hour format:
  * 1 AM/PM = 1 toll
  * 2 AM/PM = 2 tolls
  * 12 AM/PM = 12 tolls
- 1.5 second delay between individual tolls
- Uses system time (server time for single-player mode)

Technical details:
- Detects hour changes via std::chrono and localtime()
- Tracks lastHourTolled_ to prevent duplicate tolling
- remainingTolls_ counter for sequential toll playback
- bellTollDelay_ for 1.5s spacing between tolls
- Only tolls when currentCity_ is set (in a city)
- Resets bell state when changing cities
- Converts 24-hour to 12-hour format (0 and 12 both become 12)

Example: At 3:00 PM in Stormwind, the Alliance bell will toll 3 times
with 1.5s between each toll, marking the hour like a real clock tower.

This makes bells actually useful for tracking real time while playing!
2026-02-09 16:33:53 -08:00
..
activity_sound_manager.cpp Add ambient sound system and eliminate log spam 2026-02-09 14:50:14 -08:00
ambient_sound_manager.cpp Make city bell tolls mark real server time like actual clock towers 2026-02-09 16:33:53 -08:00
audio_engine.cpp Add ambient sound system and eliminate log spam 2026-02-09 14:50:14 -08:00
footstep_manager.cpp Replace process-spawning audio with miniaudio for non-blocking playback 2026-02-09 00:40:50 -08:00
mount_sound_manager.cpp Implement mount ambient sounds 2026-02-09 01:19:35 -08:00
music_manager.cpp Add ambient sound system and eliminate log spam 2026-02-09 14:50:14 -08:00
npc_voice_manager.cpp Add comprehensive NPC voice system with interaction and combat sounds 2026-02-09 16:03:51 -08:00
ui_sound_manager.cpp Add comprehensive UI sound manager for interface interactions 2026-02-09 16:30:47 -08:00