SYNRunAudioFrame

Syntax

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

void SYNRunAudioFrame(void);

Parameters

None.

Return Values

None.

Description

SYNRunAudioFrame runs and services all active voices for a single audio frame. This function must be called by the audio frame callback routine, which in turn must be registered by AXRegisterFrameCallback. For example:

    static void callbackForAudioFrame(void)
    
    {
        SYNRunAudioFrame();		//runs the synthesizer
        MIXUpdateSettings();	//updates and changes some settings with SYN
    }
    void main(void)
    
    {
        ...
    
    AXInit();
        MIXInit();
        SYNInit();
        AXRegisterFrameCallback(&callbackAudioFrame);
    
        ...
    
        SYNQuit();
        MIXQuit();
    AXQuit();
        ...
    }

Do Not Call From

None.

See Also

MIXInit
AXInit

Revision History

2013-05-08 Automated cleanup pass.
2006-03-01 Initial version.


CONFIDENTIAL