MidiSetApplAlarm


Defines the context alarm of an application. This alarm will be called by MidiShare on every application of global context modifications (opening and closing of applications, opening and closing of midi ports, changes in connections between applications, SMPTE synchronisation).

pascal void  MidiSetApplAlarm(short refNum, ApplAlarmPtr alarm);

refNum
a 16-bit integer, it is the reference number of the application.
alarm
a ApplAlarmPtr, a pointer to the application context alarm routine.

pascal void    MyApplAlarm (short refNum, long code);

refNum
a 16-bit integer, it is the reference number of the application.
code
a 32-bit integer, the context modification code : 0xRRRRMMMM where RRRR is the Reference number of the involved application and MMMM the type of change (see MidiChangeCodes).


Example to be supplied.