Exemplo n.º 1
0
// There are two APIs for getting all of the events.
// - The "raw" pointers from the linked list
// - The EnumeratorCurrentEvents wrapper
//#define USE_RAW_EVENT_ENUMERATION
#if USE_RAW_EVENT_ENUMERATION
		unsafe void PerformAllSimultaneousEvents (nint now, AURenderEvent** theEvent)
		{
			do {
				HandleOneEvent (**theEvent);
				*theEvent = (*theEvent)->Head.UnsafeNext;
			} while (*theEvent != null && ((*theEvent)->Head.EventSampleTime == now));
		}
Exemplo n.º 2
0
		void HandleOneEvent (AURenderEvent theEvent)
		{
			switch (theEvent.Head.EventType) {
			case AURenderEventType.Parameter:
			case AURenderEventType.ParameterRamp:
				AUParameterEvent paramEvent = theEvent.Parameter;

				StartRamp (paramEvent.ParameterAddress, paramEvent.Value, (int)paramEvent.RampDurationSampleFrames);
				break;
			case AURenderEventType.Midi:
				throw new NotImplementedException ();
			}
		}
Exemplo n.º 3
0
        void HandleOneEvent(AURenderEvent theEvent)
        {
            switch (theEvent.Head.EventType)
            {
            case AURenderEventType.Parameter:
            case AURenderEventType.ParameterRamp:
                AUParameterEvent paramEvent = theEvent.Parameter;

                StartRamp(paramEvent.ParameterAddress, paramEvent.Value, (int)paramEvent.RampDurationSampleFrames);
                break;

            case AURenderEventType.Midi:
                throw new NotImplementedException();
            }
        }