public RESULT getMixerStrip(GUID guid, LOADING_MODE mode, out MixerStrip strip)
            {
                RESULT result        = RESULT.OK;
                IntPtr mixerstripraw = new IntPtr();

                strip = null;

                try
                {
                    result = FMOD_Studio_System_GetMixerStrip(rawPtr, ref guid, mode, out mixerstripraw);
                }
                catch
                {
                    result = RESULT.ERR_INVALID_PARAM;
                }
                if (result != RESULT.OK)
                {
                    return(result);
                }

                strip = new MixerStrip();
                strip.setRaw(mixerstripraw);

                return(result);
            }
Пример #2
0
        public X1Track(X1Project _proj, int num)
        {
            project    = _proj;
            trackView  = null;
            mixerStrip = null;              //trackview + mixerstrip are created after the track and set these fields then

            name        = "Track " + (num + 1);
            number      = num;
            level       = 1.0f;
            pan         = 0.5f;
            mute        = false;
            record      = false;
            inputdevNum = -1;
        }
            public RESULT getMixerStrip(GUID guid, LOADING_MODE mode, out MixerStrip strip)
            {
                RESULT result   = RESULT.OK;
                IntPtr mixerstripraw = new IntPtr();
                strip = null;

                try
                {
                result = FMOD_Studio_System_GetMixerStrip(rawPtr, ref guid, mode, out mixerstripraw);
                }
                catch
                {
                result = RESULT.ERR_INVALID_PARAM;
                }
                if (result != RESULT.OK)
                {
                return result;
                }

                strip = new MixerStrip();
                strip.setRaw(mixerstripraw);

                return result;
            }
Пример #4
0
            public RESULT getMixerStrip(GUID guid, LOADING_MODE mode, out MixerStrip strip)
            {
                strip = null;

                IntPtr newPtr = new IntPtr();
                RESULT result = FMOD_Studio_System_GetMixerStrip(rawPtr, ref guid, mode, out newPtr);
                if (result != RESULT.OK)
                {
                return result;
                }

                strip = new MixerStrip(newPtr);
                return result;
            }
Пример #5
0
            public RESULT getMixerStripList(out MixerStrip[] array)
            {
                array = null;

                RESULT result;
                int capacity;
                result = FMOD_Studio_Bank_GetMixerStripCount(rawPtr, out capacity);
                if (result != RESULT.OK)
                {
                return result;
                }
                if (capacity == 0)
                {
                array = new MixerStrip[0];
                return result;
                }

                IntPtr[] rawArray = new IntPtr[capacity];
                int actualCount;
                result = FMOD_Studio_Bank_GetMixerStripList(rawPtr, rawArray, capacity, out actualCount);
                if (result != RESULT.OK)
                {
                return result;
                }
                if (actualCount > capacity) // More items added since we queried just now?
                {
                actualCount = capacity;
                }
                array = new MixerStrip[actualCount];
                for (int i=0; i<actualCount; ++i)
                {
                array[i] = new MixerStrip(rawArray[i]);
                }
                return RESULT.OK;
            }