Quantcast 4.0.6 change to PlaySoundFile() & PlaySound() - WoWInterface
Thread Tools Display Modes
Unread 02-12-11, 12:40 PM   #1
Fishing Trainer
Seerah's Avatar
WoWInterface Super Mod
Join Date: Oct 2006
Posts: 10,071
4.0.6 change to PlaySoundFile() & PlaySound()

Rejoice! You can now unlink your addon sounds and game sounds again.

PlaySoundFile() and PlaySound() have been updated to accept an optional second argument, allowing addon authors to designate which sound bus/channel to play the sound on. If the optional second argument is omitted, the functions behave as normal (current behavior).

PlaySound("sound" [, "channel"])
PlaySoundFile("sound" [, "channel"])

"channel" is a string with the following possible values. Using "Master" will ignore other sound levels.
  • "SFX"
  • "Music"
  • "Ambience"
  • "Master"
"You'd be surprised how many people violate this simple principle every day of their lives and try to fit square pegs into round holes, ignoring the clear reality that Things Are As They Are." -Benjamin Hoff, The Tao of Pooh

Seerah is offline   Reply With Quote
Unread 02-12-11, 12:52 PM   #2
A Rage Talon Dragon Guard
Ailae's Avatar
AddOn Author - Click to view addons
Join Date: Dec 2007
Posts: 317
Whoho, this is great news!
Oh, the simulated horror!
Ailae is offline   Reply With Quote

Go BackWoWInterface » Developer Discussions » Tutorials & Other Helpful Info. » 4.0.6 change to PlaySoundFile() & PlaySound()

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off