How to deal with the case when the function tries to resample the stim channel? I see three options:
1. insert equally spaced values (zeros or repeat previous sample)
2. throw an exception
3. just resample like before, probably messing up the stim channel