Obtaining Data for the Controller Speaker

Overview

Examples

#include <revolution.h>

// Are there 40 samples (or more) of audio data for the controller speaker that has been synthesized?
if (40 == AXRmtGetSamplesLeft())
{
    
    // Since there is enough data volume, the process continues.
    
    // Process for each of the four controllers.
    for (chan = 0; chan < 4; chan++)
    {

        // 40 samples of the audio data for the number chan controller is copied to the AudioBuffer[].        
        AXRmtGetSamples(chan, AudioBuffer[chan], 40);

        ... // Process the AudioBuffer[] data.
    }

    // Advance the pointer because the audio data for the controller speaker was obtained from the AX internal buffer.
    AXRmtAdvancePtr(40);
}

Revision History

07/31/2006 Initial version.


CONFIDENTIAL