Using the D_FADEINLEN & D_FADEOUTLEN you can get it seamless to loop the same section or play into a new section.