Support for play sound effect with pitch , pan, gain

Port code from object c to  play sound effect with pitch, pan, gain