feat: play audio notification when a whisper is received

Adds UiSoundManager::playWhisperReceived() which uses the dedicated
Whisper_TellMale/Female.wav files (or falls back to iSelectTarget.wav
if absent). The sound is triggered once per new incoming CHAT_MSG_WHISPER
message by scanning new chat history entries in the raid warning overlay
update loop.
This commit is contained in:
Kelsi 2026-03-12 06:12:37 -07:00
parent bcd984c1c5
commit 39bf8fb01e
3 changed files with 21 additions and 0 deletions

View file

@ -75,6 +75,9 @@ public:
void playTargetSelect();
void playTargetDeselect();
// Chat notifications
void playWhisperReceived();
private:
struct UISample {
std::string path;
@ -122,6 +125,7 @@ private:
std::vector<UISample> errorSounds_;
std::vector<UISample> selectTargetSounds_;
std::vector<UISample> deselectTargetSounds_;
std::vector<UISample> whisperSounds_;
// State tracking
float volumeScale_ = 1.0f;