To save storage space and to make my program more efficient (as well as give me more versatility), I'd like to play only part of a sound. Can it be done with existing commands (XACT or SoundEffect) or do I have to write something myself from scratch?
Let's say I have a wave file that has two distinct parts. Sometimes I'd like to play the whole file. Sometimes I'd like to only play the first half.
If I do have to write my own custom routines, would it be easier to:
1) Load a complete wave and write code that stops the sound while playing before it plays the second half
2) Load two separate waves and write code that plays the first one and then occasionally plays the second wav once the first has finished
Please give me your thoughts.