WoWInterface

WoWInterface (http://www.wowinterface.com/forums/index.php)
-   Tutorials & Other Helpful Info. (http://www.wowinterface.com/forums/forumdisplay.php?f=12)
-   -   4.0.6 change to PlaySoundFile() & PlaySound() (http://www.wowinterface.com/forums/showthread.php?t=38901)

Seerah 02-12-11 11:40 AM

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"

Ailae 02-12-11 11:52 AM

Whoho, this is great news!


All times are GMT -6. The time now is 01:39 AM.

vBulletin © 2014, Jelsoft Enterprises Ltd
©2012 ZAM Network LLC