SYNSetUpdateCallback

Syntax

#include <cafe.h>
#include <cafe/syn.h>

typedef void (*SYNCallback)(AXVPB *axvpb, SYNSYNTH *synth, u8 midiChannel);

SYNCallback SYNSetUpdateCallback(SYNSYNTH *synth, SYNCallback callback);

Parameters

synth Pointer to the user-initialized SYNSYNTH data structure.
callback Callback to be registered.

Return Values

Pointer to the previous callback function.

Description

The SYNSetUpdateCallback function registers a callback function that is called every three milliseconds for each audio frame for the specified synthesizer.

Use this callback function when outputting a voice from the controller speaker via a synthesizer.

Do Not Call From

None.

Revision History

2013/05/08 Automated cleanup pass.
2006/08/03 Initial version.


CONFIDENTIAL