mirror of
https://github.com/Kelsidavis/WoWee.git
synced 2026-03-22 23:30:14 +00:00
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:
parent
bcd984c1c5
commit
39bf8fb01e
3 changed files with 21 additions and 0 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue