/// <summary> /// Forces the VGMSTREAM to loop from start to end. /// This method destroys the previous loop points. /// </summary> public void ForceLoop() { VGMStreamNative.SetLoopFlag(vgmstream, true); VGMStreamNative.SetLoopStartSample(vgmstream, 0); VGMStreamNative.SetLoopEndSample(vgmstream, sampleCount); loopFlag = true; }
/// <summary> /// Disables the loop for this VGMSTREAM. /// </summary> public void DisableLoop() { loopFlag = false; VGMStreamNative.SetLoopFlag(vgmstream, false); }