These forums are in read-only mode. Please see this news post for more information.

New forums can be found here

Go Back   WowAce Forums > General > Lua Code Discussion
Lua Code Discussion You scared? Terrified. Mortified. Petrified. Stupefied... by [coding].

Thread Tools
Old 02-12-2011   #1
Legendary Member
Seerah's Avatar
Join Date: May 2006
Posts: 6,724
Default 4.0.6 change to PlaySound() & PlaySoundFile()

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"
Seerah is offline   Reply With Quote
Old 02-13-2011   #2
Full Member
mojosdojo's Avatar
Join Date: Aug 2006
Posts: 104
Default Re: 4.0.6 change to PlaySound() & PlaySoundFile()

It's about time! (tm)
mojosdojo is offline   Reply With Quote

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
Thread Tools

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

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

Forum Jump

All times are GMT. The time now is 12:48 AM.