Quantcast WoWInterface - View Single Post - 4.0.6 change to PlaySoundFile() & PlaySound()
View Single Post
02-12-11, 12:40 PM   #1
Fishing Trainer
Seerah's Avatar
WoWInterface Super Mod
Join Date: Oct 2006
Posts: 10,466
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

  Reply With Quote