Final Mix Callback Demo

Location

$CAFE_ROOT/system/src/demo/ax

Description

Demonstrates how to use the final mix callback to modify the final mix. Specifically:

NOTE:
To hear the changes described, configure the Audio Mode to HDMI Surround (in User Settings) and use a 5.1 surround audio system.

The demo is intended to show how the final mix callback can be used for performing further processing on the final mix. To demonstrate the usage, we have implemented:

The mix is chosen as:

right = right + sur_right*0.2 + center*0.5 + lfe*0.5
left = left + sur_left*0.2+center*0.5 + lfe*0.5
sur_left = 0;
sur_right = 0;
lfe = 0;
fc = 0;

There is no particular reason to choose this remix. This is just for educational purposes only. Users are encouraged to experiment with the mixes.

Other options can be performed in the final mix callback:

Console Output

After the program is invoked, it will display the following output:

********************************************************
********************************************************
*            Final Mix Call back demo                  *
********************************************************
********************************************************
*    PAD Buttons are:                                  *
*    Home        Quit Program                          *
*    Rt/Lt       move parameter selection cursor       *
*    Up/Dn       +/- selected parameter                *
*    B           Start/Stop playing current tone       *
*    X           Cycle through final mix types         *
*    Y           Apply / do not apply final mix        *
********************************************************
********************************************************

                finalmix.c built 19:05:13 Apr 4 2012
                
             B Play       OFF                        
             X Final Type NONE
             Y Apply      NO
                                                     Home       Quit
                                                     Up/Dn      move cursor
                                                     Left/Right Toggle Value

The two left columns display voice control and final mix control parameters. The lower right describes the PAD navigation controls.

Navigating with the GamePad

Files

$CAFE_ROOT/system/src/demo/ax/finalmix.c Demo source code.
$CAFE_ROOT/data/disc/content/axdemo/common/surround_music.spt SoundPipe Table.
$CAFE_ROOT/data/disc/content/axdemo/common/surround_music.spd SoundPipe Sample data.

Samples

Front Left Lead Synth.
Front Right Bass Synth rhythm.
Front Center Snare, Closed Hi-Hat, Mid Tom, Kick.
Surround Left Ride Cymbal, Open Hi-Hat, Hi Tom.
Surround Right Ride Cymbal, Open Hi-Hat, Lo Tom.
LFE Low frequency mix from all other channels.

See Also

AXAcquireVoice
AXRegisterDeviceFinalMixCallback
AXSetVoiceState
SPGetSoundEntry
SPInitSoundTable
SPPrepareEnd
SPPrepareSound

Revision History

2013/05/08 Automated cleanup pass.
2012/08/01 Cleanup Pass.
2012/01/26 Updated for SDK 2.02 Release


CONFIDENTIAL