I don’t think you can do that - you cannot use both outputs independently (may not even be able to use both together, but there seems to be a setting to do it)
Derek
Well it whould be OK if i could play a sound over HDMI if it dont stop the Kofi playback at all, but I would preffer if its possible to play separated over the 3,5mm jack.
If it should be simple, try alsaplayer. Should be in the repo. Load the module before.
With alsaplayer you should also be able to set the hw device to output to.
osmc@osmc:~$ sudo aplay codec.wav
ALSA lib confmisc.c:768:(parse_card) cannot find card '0'
ALSA lib conf.c:4259:(_snd_config_evaluate) function snd_func_card_driver returned error: No such file or directory
ALSA lib confmisc.c:392:(snd_func_concat) error evaluating strings
ALSA lib conf.c:4259:(_snd_config_evaluate) function snd_func_concat returned error: No such file or directory
ALSA lib confmisc.c:1251:(snd_func_refer) error evaluating name
ALSA lib conf.c:4259:(_snd_config_evaluate) function snd_func_refer returned error: No such file or directory
ALSA lib conf.c:4738:(snd_config_expand) Evaluate error: No such file or directory
ALSA lib pcm.c:2239:(snd_pcm_open_noupdate) Unknown PCM default
aplay: main:722: audio open error: No such file or directory
sry for all this noob questions, but i never was into that kind of configure stuff before.