MorphOS Developer
Posts: 1516 from 2003/2/24
From: Finland
Use HookEntry:
Quote:
hook->h_Entry = (HOOKFUNC)&HookEntry;
hook->h_SubEntry = (HOOKFUNC)&RecordFunc;
ULONG RecordFunc(struct Hook *hook, struct AHIAudioCtrl *actrl, struct AHIRecordMessage *rmsg)
{
/* ... */
}
1 + 1 = 3 with very large values of 1