play

external fun play(source: ISoundSource, preferences: SoundPlayingPreferences, listener: ISoundPlayingListener): Int

Play the requested sound. The provided progress listener will be used also for canceling the play. A progress listener can be attached to only one play operation at a time. The player will release the source when no more needed.

Return

GemError.NoError Success

GemError.NotFound Sound not found

GemError.InvalidInput Invalid sound provided

GemError.NotSupported Sound not supported

GemError.General Any other error