public int __sceSasSetVoice(uint SasCorePointer, int Voice, byte* VagPointer, int VagSize, int LoopCount) { var SasVoice = GetSasCoreVoice(SasCorePointer, Voice); if (VagPointer == null) { SasVoice.Vag = null; } else { SasVoice.Vag = new Vag(VagPointer, VagSize); SasVoice.Vag.Reset(); SasVoice.Vag.SetLoopCount(LoopCount); } return 0; }