Example #1
0
        public RESULT getName(StringBuilder name, int namelen)
        {
            IntPtr intPtr = Marshal.AllocHGlobal(name.Capacity);
            RESULT result = Sound.FMOD5_Sound_GetName(this.rawPtr, intPtr, namelen);

            StringMarshalHelper.NativeToBuilder(name, intPtr);
            Marshal.FreeHGlobal(intPtr);
            return(result);
        }