I have a problem with manually looping xWMA files. DirectX documentation suggests that if xWMA data is submitted as more than one buffer (as in case of streamed files), then the sound can only be
looped manually by resubmiting the series of xWMA buffers. Consider the following code:
XAUDIO2_BUFFER buffer = { 0 };
buffer.pAudioData = ...