static public class NGUITools
{
...
static public AudioSource SoundSource;
....
static public AudioSource PlaySound (AudioClip clip, float volume, float pitch)
{
....
// use the static member if it's set, otherwise use the original behavior to find/create one
if (SoundSource == null)
{
SoundSource = mListener.audio;
if (SoundSource == null) SoundSource = mListener.gameObject.AddComponent<AudioSource>();
}
SoundSource.pitch = pitch;
etc. ...
}