+* loadSound(sound: ISound, afterLoadingAction?: typeAfterLoadingAction) this method can be used to load a given sound, the second parameter **afterLoadingAction** is optional, if the afterLoadingAction is set to **PlayerCore.AFTER_LOADING_SEEK** then after the loading is done the sound will seek to a position defined by **sound.seekPercentage** or if set to **PlayerCore.AFTER_LOADING_PLAY** then the song will start playing after the loading has finished, if not set the sound will just get loaded, this is a helper function you don't need to trigger it manually if you have no use case that requires it, if you use play() instead then loadSound will get called automatically (with afterLoadingAction set to play) and if you use setPostion before the sound started playing then loadSound will get called automatically (with afterLoadingAction set to seek), loadSound is useful if you want to get the sound duration before the song is actually playing (as long as a sound is not loaded it's duration is not defined)
0 commit comments