setPlayer

fun setPlayer(player: SoundPlayer, mimeType: EMimeType): Int

Sets a sound player for specific MIME type. By default there is no player registered. So, in order to be able to play a sound the API user should set first a player for the specific EMimeType

Return

GemError.NoError Success

GemError.NotSupported If the provided player does not support the specified MIME type

GemError.InvalidInput If player is NULL or mimeType is not valid

GemError.General Any other error

Parameters

player

Pointer to the player that will be used by the sound service. The sound playing service will take ownership over the player.

mimeType

The MIME type of the content that can be played using the attached player.