playSound ========= :doc:`/types/AudioModuleInterface/index`::playSound Plays a global sound and returns a unique identifier to this sound source. Declaration ----------- .. code-block:: cpp virtual SoundSourceID playSound(SoundID soundID, float gain, float pitch) = 0; Parameters ---------- .. list-table:: :width: 100% :header-rows: 1 :class: code-table * - Name - Type - Description * - soundID - :doc:`/types/SoundID/index` - The sound to play or resume. * - gain - float - The initial sound source gain. * - pitch - float - The initial sound source pitch. Returns ------- A unique :doc:`/types/SoundSourceID/index`. Notes ----- Each time this function is called, a new sound source will be played and a new :doc:`/types/SoundSourceID/index` will be returned.