If you need to do something more complex than just padding samples (e.g.