Miles Sound System SDK 7.2a

AIL_register_timbre_callback

The function AIL_register_timbre_callback registers an application function to be called immediately prior to installing a timbre with AIL_install_timbre or AIL_init_sequence.

AILTIMBRECB AIL_register_timbre_callback(
  HMDIDRIVER mdi,
  AILTIMBRECB callback
);

In Parameters

mdi
indicates the driver whose timbre installation operations are to be intercepted by the callback function.
callback
should be set to the address of an application function prototyped as an AILTIMBRECB callback.

Returns

The address of the previously-installed timbre intercept function handler.

Discussion

This function is intended primarily for use in tool and diagnostic program development, and to provide a way for the application to implement its own MIDI/XMIDI interpreter (for example, a software-based "wavetable synthesizer" such as AILXDIG.C).

Example files that use this function: AILXDIG.C


Group: XMIDI Services
Related Functions: AILTIMBRECB, AIL_register_beat_callback, AIL_register_event_callback, AIL_register_prefix_callback, AIL_register_sequence_callback, AIL_register_trigger_callback
Related Basic Types: HMDIDRIVER
Related FAQs: What's the deal with callbacks - are they threads, interrupts, system timers, or what?

For technical support, e-mail Miles3@radgametools.com
© Copyright 1991-2007 RAD Game Tools, Inc. All Rights Reserved.