When you terminate a protocol mid trial the HiFi module will continue to play the cued sound.
I have been tentatively looking through the Bpodgen2 files, I feel we could add:
H = BpodHiFi(BpodSystem.ModuleUSB.HiFi1);
H.stop
clear H
Thought it better to ask in case a change like this could cause a knock on effect of errors.
Thanks,
Cal