public SoundLock Lock(uint offset, uint length) { var loc = new SoundLock(this); library.Sound_Lock(Handle, offset, length, out loc.Ptr1, out loc.Ptr2, out loc.Len1, out loc.Len2).CheckResult(); return(loc); }
public void Unlock(SoundLock Lock) { if (Lock.Parent != this) { throw new ArgumentException("Lock does not belong to this Sound object"); } library.Sound_Unlock(Handle, Lock.Ptr1, Lock.Ptr2, Lock.Len1, Lock.Len2).CheckResult(); Lock.IsValid = false; }