FMOD_Channel_GetCurrentSound() приватный Метод

private FMOD_Channel_GetCurrentSound ( IntPtr channel, IntPtr &sound ) : RESULT
channel System.IntPtr
sound System.IntPtr
Результат RESULT
Пример #1
0
        public RESULT getCurrentSound(ref Sound sound)
        {
            RESULT rESULT = RESULT.OK;
            IntPtr raw    = IntPtr.Zero;

            try
            {
                rESULT = Channel.FMOD_Channel_GetCurrentSound(channelraw, ref raw);
            }
            catch
            {
                rESULT = RESULT.ERR_INVALID_PARAM;
            }
            RESULT result;

            if (rESULT != RESULT.OK)
            {
                result = rESULT;
            }
            else
            {
                if (sound == null)
                {
                    Sound sound2 = new Sound();
                    sound2.setRaw(raw);
                    sound = sound2;
                }
                else
                {
                    sound.setRaw(raw);
                }
                result = rESULT;
            }
            return(result);
        }